JQuery Easyui API Chinese document-spinner (Spinner)

Source: Internet
Author: User
Tags extend

Exhibition from $.fn.validatebox.defaults , with $.fn.spinner.defaults rewrite the Defaults .

Depend on
    • Validatebox
Usage
1. <input id = "ss" value = "2" /c21> >
1. $ ( ' #ss ' ). Spinner ({
2. Required: true ,
3. increment:10
4. });
Characteristics
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.
Event
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.
Method
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.