F
Filament11mo ago
ericmp

How to hide action modal footer actions?

Im trying
Tables\Actions\Action::make('test')
->modalFooterActions([])
Tables\Actions\Action::make('test')
->modalFooterActions([])
But i still see the actions in the modal footer The action contains an infolist. The user only opens the modal to see the infolist, then clicks away and modal closes, i dont wanna show the footer actions
No description
3 Replies
yagrasdemonde
yagrasdemonde11mo ago
->modalSubmitAction(false)
->modalCancelAction(false)
->modalSubmitAction(false)
->modalCancelAction(false)
dissto
dissto11mo ago
If I remember correctly you would need to return an empty array from within a closure
Tables\Actions\Action::make('test')
->modalFooterActions(fn () => [])
Tables\Actions\Action::make('test')
->modalFooterActions(fn () => [])
ericmp
ericmpOP11mo ago
awesome, both ways work thanks @yagrasdemonde & @dissto 🙏

Did you find this page helpful?