Remove part of the time interval Kendo TimePicker

2

When you use% w / w% of% w / w to set a service time selection, the minimum period (8:00 AM) and maximum (18:00) has been set, however it will be necessary to remove the interval from 12:00 until 1:30 p.m. in this list.

How to do this action?

    
asked by anonymous 14.01.2015 / 12:13

1 answer

4

To do this you should use configuration dates. link

See the example below. Note: Warm up with no date. Only with the hours.

$("#timepicker").kendoTimePicker({
dates: [
    new Date(2000, 10, 10, 10, 0, 0),
    new Date(2000, 10, 10, 10, 30, 0),
    new Date(2000, 10, 10, 11, 0, 0),

    new Date(2000, 10, 10, 15, 0, 0),
    new Date(2000, 10, 10, 15, 30, 0),
    new Date(2000, 10, 10, 16, 0, 0)
] //vai mostra 10:00 AM até 11:00 AM e 3:00 PM até 4:00 PM

});

    
15.01.2015 / 12:51