Progress indicators inform users that a system process is currently taking place that takes a predictable amount of time before it is finished.
API status: | general |
---|---|
Included in AUI core? | Not in core You must explicitly require the web resource key. |
Web resource key: |
com.atlassian.auiplugin:aui-progress-indicator |
AMD Module key: | N/A |
Experimental since: | 5.2 |
General API status: | 5.8 |
To get an initial progress bar simply include the markup.
To update the progress bar you can call the update method:
<div id="some-id" class="aui-progress-indicator">
<span class="aui-progress-indicator-value"></span>
</div>
AJS.progressBars.update("#some-id", 0.2);
All progress indicator functions are called from the global object AJS.progressBars
Function | Arguments | Description | Example Usage |
---|---|---|---|
update | element, value | updates the specified progress bar to the specified value.
|
AJS.progressBars.update("progress-bar-id", 0.4); |
setIndeterminate | element | Sets a determinate progress bar back to its indeterminate state. NOTE: This will lose any progress on the progress bar. To retain the current progress you can read the 'data-value' attribute on the DOM Element. |
AJS.progressBars.setIndeterminate("progress-bar-id"); |