Progress Bar Widget
Progress bar will provide the information about the progress of a particular process.
Basic Usage $.domLoaded(function() { $.get("#prog").widget("progressbar", CONFIG_JSON ); }
Configuring Options
It contains array of JSON objects. The properties are mentioned below.
Methods
Progress Bar Widget Examples Example 1
JS
HTML
var pr1; $.domLoaded( function() { $.get("#btn1").on("click", function() { pr1.set(parseInt($.get("#val").element().value)); }); $.get("#btn2").on("click", function() { pr1.incr(5); }); $.get("#btn3").on("click",function() { pr1.decr(5); }); pr1 = $.get("#progr").widget("progressbar", { def : 22, dim : { wid : 150 }, showPercent : true }); });
Result
| |||||||||||||||||||||||||||||||||||||||||