Bootprap Timepicker - Time Lapse

I recently replaced the use of jQuery UI timepicker with the timepicker found here , as it displays. jQuery UI is not compatible with Twitter Bootstrap.

I managed to get datepicker and timepicker to work, but I miss the functionality of my old timepicker user - the ability to control steps in minutes. I only want to allow the user to increase the timer minutes at 15-minute intervals. This worked flawlessly with the jQuery user interface using the following syntax:

$(function() {
  $('#div_id').timepicker({
    stepMinute: 15
  });
});

My current code that calls timepicker fine: (stepMinute has no effect, probably the wrong syntax for this timepicker)

jQuery(function($){
    $('#div_id').timepicker({
        stepMinute: 15
    });
});

, bootstrap timepicker, , .

+4
2

, change.bfhtimepicker , .

, , flashpacker, minuteStep.

:

$('#timepicker1').timepicker({
    defaultTime: 'current',
    minuteStep: 15,
    disableFocus: true,
    template: 'dropdown'
});

: http://jsfiddle.net/IrvinDominin/e3k37/

: http://jdewit.imtqy.com/bootstrap-timepicker/

+6

"",

$('.time').datetimepicker({
    pickDate: false,
    use24hours: true,
    minuteStepping: 15,
    format: 'HH:mm'
  });
0

Source: https://habr.com/ru/post/1536431/


All Articles