JQM Datebox remove Hours and Seconds from durationbox

被刻印的时光 ゝ 提交于 2019-12-10 20:48:40

问题


I've had a good look through their docs, but does anyone know if it is possible to remove the 'days' and 'seconds' options from the popup for the durationbox?

Here is what I have:

<label for="time">Duration (mins)</label>
<input name="duration" id="duration" type="date" data-role="datebox" data-options='{"mode": "durationbox", "overrideDurationFormat": "%DM"}'>

回答1:


yeah, something like:

"overrideDurationOrder":["h","i"] 

I believe




回答2:


You can try this:

<input name="mydate" id="mydate" type="date" data-role="datebox" data-options='{"mode": "durationbox", "durationOrder": ["d", "h"]}'>


来源:https://stackoverflow.com/questions/11807488/jqm-datebox-remove-hours-and-seconds-from-durationbox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!