Filament Widget Table Header Actions
You can add a getTableHeaderActions
method to any component that implements the Tables\Concerns\InteractsWithTable
concern. This allowed me to add a button to the header of a table widget.
Code:
1protected function getTableHeaderActions(): array2{3 return [4 CreateAction::make()5 ->url(route('filament.resources.jobs.create')),6 ];7}
1protected function getTableHeaderActions(): array2{3 return [4 CreateAction::make()5 ->url(route('filament.resources.jobs.create')),6 ];7}
Screenshot: