F
Filament5mo ago
Nicole

View Infolist - Action Button Beside Cancel Button

How can I add an action button next to the cancel button in the Infolist view?
4 Replies
Nicole
NicoleOP5mo ago
I tried like this
->actions([
Tables\Actions\ViewAction::make()
->modal()
->modalHeading("Verification")
->modalFooterActions([
Tables\Actions\Action::make('Approve'),
Tables\Actions\Action::make('cancel')
->label('Cancel')
->color('gray')
])
])
->actions([
Tables\Actions\ViewAction::make()
->modal()
->modalHeading("Verification")
->modalFooterActions([
Tables\Actions\Action::make('Approve'),
Tables\Actions\Action::make('cancel')
->label('Cancel')
->color('gray')
])
])
But my cancel not working.
Rolland
Rolland5mo ago
try
->extraModalFooterActions([
Tables\Actions\Action::make('Approve')
]),
->extraModalFooterActions([
Tables\Actions\Action::make('Approve')
]),
Nicole
NicoleOP5mo ago
I did but it removes the cancel button
Rolland
Rolland5mo ago
did you replace modalFooterActions with extraModalFooterActions?

Did you find this page helpful?