Extended from $.fn.validatebox.defaults, rewrite defaults with $.fn.spinner.defaults.
Depend on
Validatebox
Usage
Copy Code code as follows:
<input id= "ss" value= "2" >
Copy Code code as follows:
$ (' #ss '). Spinner ({
Required:true,
Increment:10
});
Characteristics
its features extend from validatebox , the following is for spinner added feature.
| name |
type |
description |
default |
| width |
number |
component width. |
auto |
| value |
string |
initial value. |
|
| min |
string |
minimum allowable value. |
null |
| max |
string |
maximum allowed. |
null |
| increment |
number |
click the spinner button The increment value. |
1 |
| editable |
boolean |
define whether users can Enter a value directly into the text field. /span> |
true |
| disabled |
boolean |
define whether text is disabled Domain. |
false |
| spin |
function (down) |
when The function that is called when the user clicks the spinner button. |
|
Event
Name |
Parameters |
Description |
| onspinup |
none |
when the user clicks the UP Trimmer button is triggered. |
Onspindown |
None |
Triggered when the user clicks the Down trimming button. |
Method
its method extends from validatebox , the following is for Spinner" and "" " added method.
| name |
parameters |
description |
| options |
none |
back to Options object. |
| destroy |
none |
destroy spinner assembly. |
| resize |
width |
Reset the width of the component. |
| enable |
none |
Enable component. |
| disable |
none |
disable component. |
| getvalue |
none |
get the value of the component. |
| setvalue |
value |
set the value of the component. |
Clear |
None |
Clears the value of the component. |
Blog Park Merry Runny nose