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
$('#step15min-picker').mobiscroll().datepicker({
controls: ['datetime'],
stepMinute: 15,
touchUi:
});
$('#step5min-picker').mobiscroll().datepicker({
controls: ['time'],
stepMinute: 5,
touchUi:
});
$('#step2h-picker').mobiscroll().datepicker({
controls: ['time'],
stepHour: 2,
touchUi:
});
$('#step30sec-picker').mobiscroll().datepicker({
controls: ['time'],
stepSecond: 30,
touchUi:
});
JSHTML
mobiscroll.setOptions({
locale: ,
theme: ' ',
themeVariant: ' '
});
$(function () {
$('#demo-15m')
.mobiscroll()
.datepicker({
controls: ['datetime'],
stepMinute: 15,
});
$('#demo-5m')
.mobiscroll()
.datepicker({
controls: ['time'],
stepMinute: 5,
});
$('#demo-2h')
.mobiscroll()
.datepicker({
controls: ['time'],
stepHour: 2,
});
$('#demo-30s')
.mobiscroll()
.datepicker({
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>