JQuery Easyui API Chinese document-spinner spinner using _jquery

Source: Internet
Author: User
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

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.