TextInput::make('foobar')
->required()
->suffixAction(\Filament\Forms\Components\Actions\Action::make('something')
->requiresConfirmation()
->modalCancelAction(fn (StaticAction $action) => $action->label('Close')
->action(function() {
dd('Normal cacnel');
})
)
->extraModalFooterActions(fn(\Filament\Forms\Components\Actions\Action $action) => [
StaticAction::make('cancel')
->button()
->action(function() {
dd('Cancel');
}),
$action->makeModalAction('cancel2')
->action(function () {
dd('I said cancel!');
}),
\Filament\Actions\Action::make('cancel3')
->action(function() {
dd('WTF is going on?');
}),
])
->action(function () {
dd('fuck right off');
}),
),
TextInput::make('foobar')
->required()
->suffixAction(\Filament\Forms\Components\Actions\Action::make('something')
->requiresConfirmation()
->modalCancelAction(fn (StaticAction $action) => $action->label('Close')
->action(function() {
dd('Normal cacnel');
})
)
->extraModalFooterActions(fn(\Filament\Forms\Components\Actions\Action $action) => [
StaticAction::make('cancel')
->button()
->action(function() {
dd('Cancel');
}),
$action->makeModalAction('cancel2')
->action(function () {
dd('I said cancel!');
}),
\Filament\Actions\Action::make('cancel3')
->action(function() {
dd('WTF is going on?');
}),
])
->action(function () {
dd('fuck right off');
}),
),