jQuery EasyUI form plugin - Timespinner time spinner
Extended from $ .fn.spinner.defaults. By $ .fn.timespinner.defaults override the default defaults.
Time spinner (timespinner) is based on the spinner (spinner) creates. It Numerical spinner (numberspinner) is similar, but it only displays the time. Time spinner (timespinner) allows the user to increase or decrease the time by clicking on the right side of the small components Spinner.
rely
- spinner
usage
Spinner from the tag creation time (timespinner).
<Input id = "ss" class = "easyui-timespinner" style = "width: 80px;" required = "required" data-options = "min: '08: 30 ', showSeconds: true">
Created using javascript spinner (timespinner).
<Input id = "ss" style = "width: 80px;">
$ ( '# Ss'). Timespinner ({ min: '08: 30 ', required: true, showSeconds: true });
Attributes
The property extends from spinner (spinner), for the following time spinner (timespinner) added property.
名称 | 类型 | 描述 | 默认值 |
---|---|---|---|
separator | string | 时分秒之间的分隔符。 | : |
showSeconds | boolean | 定义是否显示秒的信息。 | false |
highlight | number | 初始高亮的域,0 = 时,1 = 分,... | 0 |
event
The event expanded from spinners (spinner).
method
The methods extend from spinner (spinner), for the following time spinner (timespinner) method overridden.
名称 | 参数 | 描述 |
---|---|---|
options | none | 返回选项(options)对象。 |
setValue | value | 设置时间微调器(timespinner)的值。 代码实例: $('#ss').timespinner('setValue', '17:45'); // set timespinner value var v = $('#ss').timespinner('getValue'); // get timespinner value alert(v); |
getHours | none | 获取当前的时钟的值。 |
getMinutes | none | 获取当前的分钟的值。 |
getSeconds | none | 获取当前的秒钟的值。 |
jQuery EasyUI plugin