JQM Datebox remove Hours and Seconds from duration

2019-07-02 15:46发布

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"}'>

2条回答
Viruses.
2楼-- · 2019-07-02 16:13

You can try this:

<input name="mydate" id="mydate" type="date" data-role="datebox" data-options='{"mode": "durationbox", "durationOrder": ["d", "h"]}'>
查看更多
女痞
3楼-- · 2019-07-02 16:29

yeah, something like:

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

I believe

查看更多
登录 后发表回答