tempusdominus / bootstrap-3

Tempus Dominus Bootstrap 3
https://getdatepicker.com/5-3/
MIT License
70 stars 23 forks source link

Show all enabled hours in hours view mode #116

Open HadiAkmal opened 5 years ago

HadiAkmal commented 5 years ago

This is my code to limit hours. I only allowed 8 AM to 5.30 PM:

            $('.datetimepicker1').datetimepicker({
                format: 'h:mm A',
                minDate:moment({h:8}),
                maxDate:moment({h:17, m:30}),
                ignoreReadonly: true
            });

It shows the time correctly: image

But it does not allowed me to select enabled hours in Hours View Mode. For example I want to select 8 AM but it's not available. However 8 PM is correctly shown and disabled here: image

How can I show all enabled hours in Hours View Mode? Maybe an arrow so I can go back to select 8 AM?

Thanks in advance.