F
Filament16mo 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
xyOP16mo ago
When i dd $livewire mountedTableActions does not include Tables\Actions\CreateAction. bump
Patrick Boivin
Patrick Boivin16mo ago
I think you have to dig into the RelationManager class. Probably override configureCreateAction().
Want results from more Discord servers?
Add your server