Components.ProgressBar Class
Component to display a Bootstrap progress bar, see http://getbootstrap.com/components/#progress.
Usage
Always wrap the progress bar in a Components.Progress component. Use the value
property to control the progress bar's width. To apply the different styling options supplied by Bootstrap, use the
appropriate properties like type
, showLabel
, striped
or animate
.
{{#bs-progress}}
{{bs-progress-bar value=progressValue minValue=0 maxValue=10 showLabel=true type="danger"}}
{{/bs-progress}}
Stacked
You can place multiple progress bar components in a single Components.Progress to create a stack of progress bars as seen in http://getbootstrap.com/components/#progress-stacked.
{{#bs-progress}}
{{bs-progress-bar value=progressValue1 type="success"}}
{{bs-progress-bar value=progressValue2 type="warning"}}
{{bs-progress-bar value=progressValue3 type="danger"}}
{{/bs-progress}}
Item Index
Properties
animate boolean
publicAnimate the stripes, see http://getbootstrap.com/components/#progress-animated
Default: false
classTypePrefix String
protectedDefault: 'progress-bar'
maxValue number
publicThe upper limit of the value range
Default: 100
minValue number
publicThe lower limit of the value range
Default: 0
percent number
protectedThe percentage of value
percentRounded number
protectedThe percentage of value
, rounded to roundDigits
digits
roundDigits number
publicSpecify to how many digits the progress bar label should be rounded.
Default: 0
showLabel boolean
publicIf true a label will be shown inside the progress bar.
By default it will be the percentage corresponding to the value
property, rounded to roundDigits
digits.
You can customize it by using the component with a block template, which the component yields the percentage
value to:
{{#bs-progress}}
{{#bs-progress-bar value=progressValue as |percent|}}{{progressValue}} ({{percent}}%){{/bs-progress-bar}}
{{/bs-progress}}
Default: false
striped boolean
publicCreate a striped effect, see http://getbootstrap.com/components/#progress-striped
Default: false
style string
privatetype String
publicDefault: 'default'
value number
publicThe value the progress bar should represent
Default: 0