Óscar
Óscar
FFilament
Created by Óscar on 7/11/2023 in #❓┊help
Action in ToggleColumn
Hi. I have the following code in a table of a resource: Tables\Columns\ToggleColumn::make('is_premium') ->searchable() ->sortable() ->action( function(User $record) { dd($record); } ), What I want to achieve is that when I click on the cell, the function inside ->action() is triggered to implement additional logic of the column value change. It only works if I change the column type to TextColumn, but with ToggleColumn nothing happens. Any idea? thanks
7 replies