jQuery EasyUI Form Plugin - Numberspinner
jQuery EasyUI Plugins
Extends $.fn.spinner.defaults and $.fn.numberbox.defaults. Override the default defaults via $.fn.numberspinner.defaults.
The numberspinner is created based on the spinner and numberbox. It can convert the input value into different types (such as numeric, percentage, currency, and so on). It allows users to scroll to a desired value using the up/down spinner buttons.
Depends on
- spinner
- numberbox
Usage
Create a numberspinner from markup.
Create a numberspinner using JavaScript.
$('#ss').numberspinner({
min: 10,
max: 100,
editable: false
});
Create a numberspinner and format the number as a currency string.
property
This property extends from the spinner and numberbox.
Events
This event extends from the spinner.
Method
This method extends from the spinner; the following are methods overridden for the numberspinner.
| Name | Parameters | Description |
|---|---|---|
| options | none | Return the options object. |
| setValue | value | Sets the value of the numberspinner. |
代码实例:
$('#ss').numberspinner('setValue', 8234725); // set value var v = $('#ss').numberspinner('getValue'); // get value alert(v) |
jQuery EasyUI Plugins