Action::make('generatePassword') ->requiresConfirmation(false) ->modalDescription('Are you sure you want to do this?') ->modal(true) ->action(function () {}), )
Action::make('generatePassword') ->requiresConfirmation(true) ->modalDescription('Are you sure you want to do this?') ->modal(false) ->action(function () {}), )
Action::make('generatePassword') ->requiresConfirmation(true) ->modalDescription('Are you sure you want to do this?') ->modal(false) ->action(function () {}),
Action::make('generatePassword') ->modalDescription(function (User $user) { if (! $user->isAdmin()) { return 'are you sure?'; } })
if (! $user->isAdmin()) {
TextInput::make('test') ->suffixAction( Action::make('test') ->requiresConfirmation(fn () => false) ->modalDescription(function () { return 'test'; }) )
protected function getFormActions(): array