ConnorHowell
ConnorHowell
FFilament
Created by ConnorHowell on 11/6/2023 in #❓┊help
Default clickable row action
I've got a resource with both edit & view actions on the table row; I've tried overriding the default click action using the 'recordAction' method but it still defaults to view instead of edit. Here's the table method, I can't tell if I'm being stupid/missing something glaringly obvious 😅
public static function table(Table $table): Table
{
return $table
->columns([
Tables\Columns\TextColumn::make('name')
->searchable()
->sortable()
])
->paginated(false)
->filters([
//
])
->recordAction('edit')
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\ViewAction::make(),
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
Tables\Columns\TextColumn::make('name')
->searchable()
->sortable()
])
->paginated(false)
->filters([
//
])
->recordAction('edit')
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\ViewAction::make(),
]);
}
5 replies
FFilament
Created by ConnorHowell on 8/27/2023 in #❓┊help
Scope tenant resources to show all models that are part of their tenant
1 replies