←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
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