下拉列表显示时间

时间:2014-10-03 13:30:08

标签: javascript html dojo

如何显示使用dojo创建的分钟文本框中的分钟数。请找到工作样本http://jsfiddle.net/7de4onun/10/我想在分钟下拉列表中仅显示00到55一次,无法获得如何实现/显示分钟下拉列表中的分钟数。 以下是代码:

<input id="timeHours" width="2px" data-dojo-type="dijit/form/TimeTextBox" required="true" data-dojo-props="constraints: { timePattern: 'HH', clickableIncrement: 'T01:05:00', visibleIncrement: 'T01:00:00', visibleRange: 'T24:00:00' }" />
:
<input id="timeMins" data-dojo-type="dijit/form/TimeTextBox" required="true" data-dojo-props="constraints: { timePattern: 'mm', clickableIncrement: 'T00:05:00', visibleIncrement: 'T00:05:00', visibleRange: 'T00:60:00' }" />

1 个答案:

答案 0 :(得分:1)

这是黑客:)

<input id="timeMins" 
   data-dojo-type="dijit/form/TimeTextBox" 
   required="true" 
   data-dojo-props="constraints: { 
       timePattern: 'mm', 
       clickableIncrement: 'T02:05:00', 
       visibleIncrement: 'T02:05:00', 
       visibleRange: 'T00:55:00' }" />

似乎从T00T00的dojo,与T00T24

相同