3

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"}'>
Fraser
  • 14,036
  • 22
  • 73
  • 118

2 Answers2

7

yeah, something like:

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

I believe

J.T.Sage
  • 1,984
  • 14
  • 21
0

You can try this:

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