F
Filament11mo ago
xy

Display table action when using RelationManager on ViewRecord

I'm currently using a RelationManager which shows on the ViewRecord page. Custom Action under headerActions shows however, the Tables\Actions\CreateAction action does not.
->headerActions([
Tables\Actions\Action::make('addTest')
->label(__('Add Test'))
->form([
Forms\Components\Textarea::make('content')
->translateLabel()
->required(),
]), // This shows
Tables\Actions\CreateAction::make(), // This does not
])
->headerActions([
Tables\Actions\Action::make('addTest')
->label(__('Add Test'))
->form([
Forms\Components\Textarea::make('content')
->translateLabel()
->required(),
]), // This shows
Tables\Actions\CreateAction::make(), // This does not
])
Is there any way for that to show on this page?
2 Replies
xy
xy11mo ago
When i dd $livewire mountedTableActions does not include Tables\Actions\CreateAction. bump
Patrick Boivin
Patrick Boivin11mo ago
I think you have to dig into the RelationManager class. Probably override configureCreateAction().