1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 progressBarEmpty := hb.Div().Class("progress"). Role("progressbar"). Child(hb.Div().Class("progress-bar").Style("width: 0%")) progressBar25Percent := hb.Div().Class("progress"). Role("progressbar"). Child(hb.Div().Class("progress-bar").Style("width: 25%")) progressBar50Percent := hb.Div().Class("progress"). Role("progressbar"). Child(hb.Div().Class("progress-bar").Style("width: 50%")) progressBar75Percent := hb.Div().Class("progress"). Role("progressbar"). Child(hb.Div().Class("progress-bar").Style("width: 75%")) progressBar100Percent := hb.Div().Class("progress"). Role("progressbar"). Child(hb.Div().Class("progress-bar").Style("width: 100%")) progressBarWithLabel := hb.Div().Class("progress").Role("progressbar"). Child(hb.Div().Class("progress-bar").HTML("25%").Style("width: 25%")) progressBarSuccess := hb.Div().Class("progress").Role("progressbar"). Child(hb.Div().Class("progress-bar bg-success").Style("width: 25%")) progressBarWarning := hb.Div().Class("progress").Role("progressbar"). Child(hb.Div().Class("progress-bar bg-warning").Style("width: 50%")) progressBarError := hb.Div().Class("progress").Role("progressbar"). Child(hb.Div().Class("progress-bar bg-danger").Style("width: 75%")) progressBarInfo := hb.Div().Class("progress").Role("progressbar"). Child(hb.Div().Class("progress-bar bg-info").Style("width: 100%")) progressBarStacked := hb.Div().Class("progress-stacked"). Child(hb.Div().Class("progress"). Style("width: 25%"). Child(hb.Div().Class("progress-bar bg-success"))). Child(hb.Div().Class("progress"). Style("width: 25%"). Child(hb.Div().Class("progress-bar bg-danger"))). Child(hb.Div().Class("progress"). Style("width: 15%"). Child(hb.Div().Class("progress-bar bg-info"))) progressBarStriped := hb.Div().Class("progress"). Child(hb.Div().Class("progress-bar progress-bar-striped").Style("width: 50%")) progressBarAnimatedStripes := hb.Div().Class("progress"). Child(hb.Div().Class("progress-bar progress-bar-striped progress-bar-animated").Style("width: 50%"))