F
Filament2mo ago
Nobody

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'),
No description
5 Replies
Nobody
Nobody2mo ago
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')
Nobody
Nobody2mo ago
already can it turns out to have to add ->native (false). but can the display be made like before giving ->native (false)?
No description
toeknee
toeknee2mo ago
->native(false) the before display is given by the browser native means browser native calendar picker
Nobody
Nobody2mo ago
thanks for the information
Want results from more Discord servers?
Add your server