Animated progress bars
All samples are using
Ink.requireModules, please read how to use it at Ink.requireModules section
Associated to a .ink-progress-bar element, it provides a setValue() method to change the element's value.
|new ProgressBar(selector, [options])||Constructor|
|.setValue(newValue)||Sets the value of the Progressbar|
selectorElement or selector
options.startValuePercentage of the bar that is filled. Ranges between 0 and 100. Default: 0
options.onStartCallback called when a change of value is started
options.onEndCallback called when a change of value ends
Setting the progress bar to 20% programmatically
Sets the value of the Progressbar
newValueNumeric value, between 0 and 100, that represents the percentage of the bar.