All pages

actions

Custom actions

Build your own record actions with closures, URLs, or Filament action configuration.

Use Asmit\AdvancedKanban\RecordAction\Action when a built-in action does not fit. The record is available in your closure:

php
use Asmit\AdvancedKanban\RecordAction\Action;

Action::make('view')
    ->label('View')
    ->icon('heroicon-o-eye')
    ->action(fn ($record) => $this->viewTask($record))
    ->openUrlInNewTab()

Action extends Filament's action class and adds kanban context — the board instance, the card's record key in $arguments['record'], and a refresh after the action runs when needed.

See also