Label for Table Actions
Hi is there any solution to add Actions label in table for example now in the columns does not have any label I need to add "Actions" as a label in column
3 Replies
Solution
Add
->actionsColumnLabel('Actions')
to the $table
use Filament\Tables;
use Filament\Resources\Table;
public function table(Table $table)
{
return $table
->columns([
Tables\Columns\TextColumn::make('item')
->label('Item'),
Tables\Columns\TextColumn::make('description')
->label('Description'),
Tables\Columns\TextColumn::make('actions')
->label('Actions') // Adding the Actions label here
->formatStateUsing(fn ($record) => view('your-actions-view', ['record' => $record])),
])
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\DeleteAction::make(),
]);
}
Thanks