Action button, but icon only?

Is there a way to make an action button just be an icon? I want the delete button in the screen shot to just be an icon like the cog button next to it. Also, I want to redirect to another page after the delete button is clicked, but the notification isn't showing up after the redirect. Is there a way to do that?
{{ ($this->deleteAction)(['id' => $task->id]) }}
{{ ($this->deleteAction)(['id' => $task->id]) }}
public function deleteAction(): Action
{
return Action::make('delete')
->size('sm')
->icon('heroicon-o-trash')
->requiresConfirmation()
->action(fn (array $arguments) => $this->delete())
->after('...redirect to another page...')
->successNotification('this is never shown')
}
public function deleteAction(): Action
{
return Action::make('delete')
->size('sm')
->icon('heroicon-o-trash')
->requiresConfirmation()
->action(fn (array $arguments) => $this->delete())
->after('...redirect to another page...')
->successNotification('this is never shown')
}
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server