Exhibition from $.fn.validatebox.defaults , with $.fn.spinner.defaults rewrite the Defaults .
1.
<input id = "ss" value = "2" /c21>
>
1. $ ( ' #ss ' ). Spinner ({
2. Required:
true ,
3. increment:10
4. });
its features extend from Validatebox , the following is for Spinner the added feature.
Name
|
Type
|
Description
|
Default value
|
Width
|
Number
|
The width of the component.
|
Auto
|
Value
|
String
|
The initial value.
|
|
Min
|
String
|
The minimum allowable value.
|
Null
|
Max
|
String
|
The maximum allowable value.
|
Null
|
Increment
|
Number
|
The increment value when the Spinner button is clicked.
|
1
|
Editable
|
Boolean
|
Defines whether a user can enter a value directly into a text field.
|
True
|
Disabled
|
Boolean
|
Defines whether text fields are disabled.
|
False
|
Spin
|
function (down)
|
The function that is called when the user clicks on the Trimmer button.
|
|
Name
|
Parameters
|
Description
|
Onspinup
|
None
|
Triggered when the user clicks the Up trimming button.
|
Onspindown
|
None
|
Triggered when the user clicks the Down trimming button.
|
its methods extend from Validatebox , the following are for Spinner method of increase.
Clears the value of a component.
Name
|
Parameters
|
Description
|
Options
|
None
|
return Options object.
|
Destroy
|
None
|
Destroys the spinner assembly.
|
Resize
|
Width
|
Resets the width of the component.
|
Enable
|
None
|
Enable the component.
|
Disable
|
None
|
Disables the component.
|
GetValue
|
None
|
Gets the value of the component.
|
SetValue
|
Value
|
Sets the value of the component.
|
clear
|
none
|