Setting time select steps
Adjust the gaps between the time picker values as needed. Use these three options for setting the steps:
stepHour- adjusts the gaps between the values for the time wheelstepMinute- adjusts the gaps between the values for the minute wheelstepSecond- adjusts the gaps between the values for the second wheel
Demo
mobiscroll.datepicker('#step15min-picker-picker', {
controls: ['datetime'],
stepMinute: 15,
touchUi:
});
mobiscroll.datepicker('#step5min-picker-picker', {
controls: ['time'],
stepMinute: 5,
touchUi:
});
mobiscroll.datepicker('#step2h-picker-picker', {
controls: ['time'],
stepHour: 2,
touchUi:
});
mobiscroll.datepicker('#step30sec-picker-picker', {
controls: ['time'],
stepSecond: 30,
touchUi:
});
JSHTML
mobiscroll.setOptions({
locale: ,
theme: ' ',
themeVariant: ' '
});
mobiscroll.datepicker('#demo-15m', {
controls: ['datetime'],
stepMinute: 15,
});
mobiscroll.datepicker('#demo-5m', {
controls: ['time'],
stepMinute: 5,
});
mobiscroll.datepicker('#demo-2h', {
controls: ['time'],
stepHour: 2,
});
mobiscroll.datepicker('#demo-30s', {
controls: ['time'],
stepSecond: 30,
timeFormat: 'HH:mm:ss',
});
<label>
Date & Time (every 15 min)
<input id="demo-15m" mbsc-input data-input-style="outline" data-label-style="stacked" placeholder="Please select..." />
</label>
<label>
Time (every 5 min)
<input id="demo-5m" mbsc-input data-input-style="outline" data-label-style="stacked" placeholder="Please select..." />
</label>
<label>
Time (every 2 hours)
<input id="demo-2h" mbsc-input data-input-style="outline" data-label-style="stacked" placeholder="Please select..." />
</label>
<label>
Time (every 30 seconds)
<input id="demo-30s" mbsc-input data-input-style="outline" data-label-style="stacked" placeholder="Please select..." />
</label>