扩展自$.fn.timespinner.defaults,使用$.fn.datetimespinner.defaults重写默认值对象。(该组件自1.4版开始可用)
DateTimeSpinner (日期时间微调框)扩展自 timespinner (时间微调框),它允许用户使用微调按钮调整指定的字段。
通过标签创建验证框。
1 | < input class = "easyui-datetimespinner" style = "width:300px" > |
使用Javascript创建验证框。
1 | < input id = "dt" type = "text" style = "width:300px" > |
1 2 3 | $( '#tb' ).datetimespinner({ //... }) |
属性扩展自 timespinner,以下是新增的日期时间微调框属性。
属性名 | 属性值类型 | 描述 | 默认值 |
---|---|---|---|
selections | array | 选择高亮部分的值(该值必须设置正确,否则微调的时候会出问题)。 | [[0,2],[3,5],[6,10],[11,13],[14,16],[17,19]] |
事件扩展自 timespinner。
方法扩展自 timespinner。