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
ashattack12mo 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
developerOP12mo ago
hey @ashattack it doesn't work
Solution
Vp
Vp12mo 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
developerOP12mo ago
oh man, its working perfect now, thank you 🙏

Did you find this page helpful?