FilamentF
Filament2y ago
Mio

TextColumn action not working as expected

Tables\Columns\TextColumn::make('title')
  ->action(function (Tables\Columns\TextColumn $column){
    $column->description('Test');
   })


This code should set the column description after clicked on the title text
but it will set the 'Test' description for all title columns together

Tables\Columns\TextColumn::make('title')
  ->action(function (Tables\Columns\TextColumn $column, $record){
    # record id is 123
    $column->description($record->id);
   })


This code will set "123" as the description for all title columns

if I try to change the clicked column state using the action method it will set all title columns together to same state
Was this page helpful?