2008-08-08 05:20:09 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
var model = {
|
|
|
|
|
|
|
|
renderAt: '#containerDemo',
|
|
|
|
|
|
|
|
title: 'Progressbar Demos',
|
|
|
|
|
|
|
|
demos: [
|
|
|
|
|
|
|
|
{
|
|
|
|
title: 'Simple Progressbar',
|
|
|
|
desc: 'With few lines of code you could build a progressbar. You can try more options on the fly!',
|
|
|
|
html: '<div id="progressbar"></div>',
|
|
|
|
destroy: '$("#progressbar").progressbar("destroy");',
|
|
|
|
options: [
|
2008-08-24 23:32:11 +00:00
|
|
|
{ desc: 'Start a progressbar', source: '$("#progressbar").progressbar({interval:2000}); $("#progressbar").progressbar("start");' },
|
2008-08-25 05:47:48 +00:00
|
|
|
{ desc: 'With different increment', source: '$("#progressbar").progressbar({interval:2000, increment:100}).progressbar("start");' },
|
|
|
|
{ desc: 'Set progress to 50%', source: '$("#progressbar").progressbar().progressbar("progress", 50);' },
|
2008-08-24 23:32:11 +00:00
|
|
|
{ desc: 'Callback when finish', source: '$("#progressbar").progressbar({interval: 1000, stop:function(){alert("Finished");}}).progressbar("start");' },
|
2008-08-25 05:47:48 +00:00
|
|
|
{ desc: 'Enable the progressbar', source: '$("#progressbar").progressbar().progressbar("enable");' },
|
|
|
|
{ desc: 'Disable the progressbar', source: '$("#progressbar").progressbar().progressbar("disable");' }
|
2008-08-08 05:20:09 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
$(function(){
|
|
|
|
|
|
|
|
uiRenderDemo(model);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|