How to set the DateTimePicker in the minutes section
how do I set the DateTimePicker in the minutes section to only display 30 or 00? so that in the minutes section you can only select the 30th minute or the 0th minute and no other minutes?
this is my DateTimePicker code
DateTimePicker::make('pickupBefore')
->required()
->seconds(false)
->minDate(now()->toDateTimeLocalString(unitPrecision: 'minute'))
->label('Pickup Before'),
5 Replies
I have used ->minutesStep(30) but in the minutes section all the numbers still appear, I only want to display in the minutes section only minutes 30 and 00.
DateTimePicker::make('pickupBefore')
->required()
->minutesStep(30)
->seconds(false)
->minDate(now()->toDateTimeLocalString(unitPrecision: 'minute'))
->label('Pickup Befores')
already can it turns out to have to add ->native (false).
but can the display be made like before giving ->native (false)?
->native(false)
the before display is given by the browser
native means browser native calendar picker
thanks for the information