F
Filamentβ€’10mo 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β€’10mo 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
developerOPβ€’10mo ago
hey @ashattack it doesn't work
Solution
Vp
Vpβ€’10mo 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
developerOPβ€’10mo ago
oh man, its working perfect now, thank you πŸ™
Want results from more Discord servers?
Add your server