Filament v2 - Table Header Actions in Widget

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:

protected function getTableHeaderActions(): array
{
return [
CreateAction::make()
->url(route('filament.resources.jobs.create')),
];
}
protected function getTableHeaderActions(): array
{
return [
CreateAction::make()
->url(route('filament.resources.jobs.create')),
];
}

Screenshot:
Print Queue Table Header Widget