Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery EasyUI Form Plugin - Numberspinner

jQuery EasyUI Form Plugin - Numberspinner


jQuery EasyUI Plugins 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

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 jQuery EasyUI Plugins