Javascript progressbar
The progressbar can use either colors or background image.
object providing methods to control field upload.
var progressbar = new ProgressBar({container: 'element'});
(boolean) indicates if the browser handle file upload via XMLHTTPRequest.
- options - (object)
- container - (mixed) progressbar container.
- width - (int, optional) progressbar width. default to the container width.
- value - (number, optional) initial value of the progressbar. value is always between 0 and 1 (100%). default to 0.
- text - (string, optional) progressbar text.
- color - (string, optional) progressbar color.
- fillColor - (string, optional) progressbar fill color.
- backgroundImage - (string, optional) background image used to fill the progressbar. this parameter will shadow the fillColor parameter.
Fired after the value is changed.
- value - (number) the current value
- progressbar - (object) this progressbar
Fired after the value has been set to 1.
- progressbar - (object) this progressbar
set the text in the progressbar
- text - (string)
set the progressbar value. the value is a number between 0 and 1.
- value - (number)
return the progressbar value.