javascript - Bootstrap Timepicker - Minute Intervals -
i swapped using jquery ui timepicker using timepicker found here appears jquery ui incompatible twitter bootstrap.
i've managed datepicker , timepicker working lack of functionality of old timepicker - ability control steps in minutes. wish allow user increase minutes of timepicker in 15 minute intervals. worked flawlessly jquery ui using following syntax:
$(function() { $('#div_id').timepicker({ stepminute: 15 }); });
my current code, calls timepicker fine: (stepminute gives no effect, incorrect syntax timepicker)
jquery(function($){ $('#div_id').timepicker({ stepminute: 15 }); });
i wish emulate using bootstrap-friendly timepicker linked @ start of question, appreciated.
if don't want change plugin code can use change.bfhtimepicker
event ad increment/decrement hour , minutes step.
alternatively, appear little different because ui, can switch bootstrap timepicker plugin implements minutestep
feature.
code:
$('#timepicker1').timepicker({ defaulttime: 'current', minutestep: 15, disablefocus: true, template: 'dropdown' });
Comments
Post a Comment