F
Filamentβ€’5mo ago
developer

how to add action buttons to slideOver() footer

this
No description
Solution:
```php use Filament\Actions\Action; Tables\Actions\ViewAction::make() ->extraModalFooterActions([...
Jump to solution
4 Replies
ashattack
ashattackβ€’5mo ago
Not at my desk right now but see if something like this works:
php
protected function viewRecordAction(): ViewRecord
{
return parent::viewRecordAction()
->modalContent(...)
->modalActions([
ButtonAction::make('yourCustomAction')
->label('Custom Action')
->action('customActionMethod'),
// Add more buttons as needed
]);
}
php
protected function viewRecordAction(): ViewRecord
{
return parent::viewRecordAction()
->modalContent(...)
->modalActions([
ButtonAction::make('yourCustomAction')
->label('Custom Action')
->action('customActionMethod'),
// Add more buttons as needed
]);
}
developer
developerβ€’5mo ago
hey @ashattack it doesn't work
Solution
Vp
Vpβ€’5mo ago
use Filament\Actions\Action;

Tables\Actions\ViewAction::make()
->extraModalFooterActions([
Action::make('edit'),
]),
use Filament\Actions\Action;

Tables\Actions\ViewAction::make()
->extraModalFooterActions([
Action::make('edit'),
]),
developer
developerβ€’5mo ago
oh man, its working perfect now, thank you πŸ™