jQuery UI API - Progressbar Widget
Category
Usage
**Description:** Display a determinate or indeterminate progress status.
**Version added:** 1.6
A progressbar is designed to display the current completion percentage of a process. The progressbar is flexibly sized via CSS and by default scales to fit its parent container.
A determinate progressbar should only be used when the system can accurately update the current status. A determinate progressbar does not fill from left to right and then loop back to empty - if the actual status cannot be calculated, use an indeterminate progressbar to provide user feedback.
Theming
The Progressbar Widget uses jQuery UI CSS Framework to define the style of its look and feel. To use progressbar-specific styling, you can use the following CSS class names:
ui-progressbar: The outer container of the progressbar. For an indeterminate progressbar, this element additionally has aui-progressbar-indeterminateclass。ui-progressbar-value: This element represents the filled portion of the progressbar.ui-progressbar-overlay: The overlay used to display the animation for an indeterminate progressbar.
ui-progressbar-overlay: The overlay used to display the animation for an indeterminate progressbar.
Depends on
Additional Notes
- This widget requires some functional CSS; otherwise it will not work. If you create a custom theme, use the widget-specific CSS file as a starting point.
Example
A simple jQuery UI indeterminate progressbar.
进度条部件(Progressbar Widget)演示