Easyui form plug-in-include date when control-list

Source: Internet
Author: User

←jquery Easyui Form Plug-in –numberspinner value spinner

JQuery Easyui Form Plugin-Timespinner Time Spinner

JQuery Easyui Plugin

Extended from $.fn.spinner.defaults. Overrides the default defaults through $.fn.timespinner.defaults.

The time Spinner (Timespinner) is created based on a spinner (spinner). It is similar to a numeric spinner (Numberspinner), but it shows only the time value. The time Spinner (Timespinner) allows the user to increase or decrease the time by tapping the small spinner button on the right side of the component.

Depend on
    • Spinner
Usage

Creates a time spinner (Timespinner) from the marker.

<inputid="ss"class="Easyui-timespinner"style="width: 80px;" Required="Required"data-options="min: ' 08:30 ', showseconds:true"> 

Use JavaScript to create a time spinner (Timespinner).

<input id= "ss"  style=  "width:80px;" >               
$(' #ss ').  Timespinner({ min:' 08:30 ', required:true, showseconds:  True});                
Property

The property extends from the spinner (spinner), and the following is the attribute added for the time spinner (Timespinner).

name type Description Default Value
Separator String The delimiter between minutes and seconds. :
Showseconds Boolean Defines whether to display information for seconds. False
Highlight Number Initial highlighted field, 0 = when, 1 = minute, ... 0
Event

The event extends from the spinner (spinner).

Method

The method extends the self-spinner (spinner), and the following is the method that is overridden for the time spinner (Timespinner).

name Parameters Description
Options None Returns the Options object.
SetValue Value Sets the value of the time spinner (Timespinner).
code example:
$ ( ' #ss '  ). timespinner ( ' setValue '   ' 17:45 ' ); //set timespinner valuevar V = $ ( ' #ss '  ' getValue ' //get timespinner valuealert (v                
GetHours None Gets the value of the current clock.
Getminutes None Gets the value of the current minute.
Getseconds None Gets the value of the current second.

Easyui form plug-in-include date when control-list

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.