How to clear DateTimePicker field?
Does anyone know if there’s a good way to clear the DateTimePicker field please?
Native or non native, I don’t have a clear button anywhere!
Thanks
Native or non native, I don’t have a clear button anywhere!
Thanks
DateTimePicker::make('date')
->hintAction(\Filament\Forms\Components\Actions\Action::make('clear')
->action(fn (DateTimePicker $component) => $component->state(null)))