Open cansuB opened 6 years ago
Hi cansuB
I see no one ever replied to you, but if anyone else needs to do something similar, you can control this using the following option:
stepping: 60
This will essentially change the time intervals to every 60 minutes, thus only allowing hourly variables to be used. You can also use this together with the 'disabledTimeIntervals' and 'enabledHours' options to tightly control exactly what times you want to allow.
Hope this helps!
Hi, It's been a while you were asking but maybe others have the same question. I had a similar problem with disabling the hours and only having the minutes. The FAQ (https://tempusdominus.github.io/bootstrap-4/FAQ/) helped me: "The picker uses the format option to decide what components to show. Set format to LT, LTS or another valid MomentJs format string to display certain components"
So I just used the option format: 'm'
and it worked for me. So you should put 'h' or 'H' for 24Hour Format.
Hope I could help.
Hi,
Is there any way to disable minute picker? I just want the hour picker only. I need the minute part to be 00 and disabled always to select hours like 16:00, 07:00 etc.
Thanks