FilamentF
Filament8mo ago
Asmit

Custom Action on custom column.

Hello everyone,
Is there any way to add custom action on custom column:
use Filament\Tables\Actions\Action;
use Filament\Tables\Columns\Column;

class CustomColumn extends Column
{
     public function getCustomAction(): ?Action
    {
       return Action::make('customAction')
           ->form([
               TextColumn::make('name')
           ]);
    }
}


<div>
   {{ $getState() }}
   {{ $getCustomAction() }}
</div>

It shows the button but not trigger the modal why ?
Was this page helpful?