2008-08-07 17:17:06 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
var model = {
|
|
|
|
|
|
|
|
renderAt: '#containerDemo',
|
|
|
|
|
|
|
|
title: 'Spinner Demos',
|
|
|
|
|
|
|
|
demos: [
|
|
|
|
|
|
|
|
{
|
|
|
|
title: 'Simple spinner',
|
|
|
|
desc: 'With few lines of code you could build a spinner. You can try more options on the fly!',
|
|
|
|
html: '<input id="spinner" type="text" />',
|
|
|
|
destroy: '$("#spinner").spinner("destroy");',
|
|
|
|
options: [
|
|
|
|
{ desc: 'Make a spinner', source: '$("#spinner").spinner();' },
|
|
|
|
{ desc: 'A spinner with min and max value', source: '$("#spinner").spinner({min:-100, max:150});' },
|
|
|
|
{ desc: 'Big stepping', source: '$("#spinner").spinner({stepping:100});' },
|
2008-08-25 05:47:48 +00:00
|
|
|
{ desc: 'Currency option', source: '$("#spinner").spinner({currency:"$"});' },
|
2008-08-07 17:17:06 +00:00
|
|
|
{ desc: 'Disable incremental option', source: '$("#spinner").spinner({incremental:false});' },
|
2008-08-25 05:47:48 +00:00
|
|
|
{ desc: 'Enable the spinner', source: '$("#spinner").spinner().spinner("disable");' },
|
|
|
|
{ desc: 'Disable the spinner', source: '$("#spinner").spinner().spinner("enable");' }
|
2008-08-07 17:17:06 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
$(function(){
|
|
|
|
|
|
|
|
uiRenderDemo(model);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|