F
Filamentβ€’15mo ago
Pixxle_chris

Change the title on relation manager modal

Hello, Maybe someone can tell me how we can change the title on the relation manager ? I dont' find how we can make this. I would change this with a custom title and not the name of the relationship. Thanks.
Solution:
Ok Dennis that's working. Very thanks. So for people who want to do this, in your RelationManager file, in the table function, I made this : ``` ->headerActions([...
Jump to solution
6 Replies
LeandroFerreira
LeandroFerreiraβ€’15mo ago
$table->modelLabel('New label')
$table->modelLabel('New label')
Pixxle_chris
Pixxle_chrisOPβ€’15mo ago
Hello Leandro, no it's not working. Call to undefined method Filament\Resources\Table::modelLabel() I put your code in the table function. I use the v2
Dennis Koch
Dennis Kochβ€’15mo ago
I think it will use the $title of RM + Create/Edit keyword. You can overwrite the whole thing via:
CreateAction::make()->modalHeading(...)
CreateAction::make()->modalHeading(...)
Solution
Pixxle_chris
Pixxle_chrisβ€’15mo ago
Ok Dennis that's working. Very thanks. So for people who want to do this, in your RelationManager file, in the table function, I made this :
->headerActions([
Tables\Actions\CreateAction::make()->modalHeading('Custom Label'),
])
->headerActions([
Tables\Actions\CreateAction::make()->modalHeading('Custom Label'),
])
`
LeandroFerreira
LeandroFerreiraβ€’15mo ago
ahh sorry, I didn't notice the filament version
Pixxle_chris
Pixxle_chrisOPβ€’15mo ago
Don't worry, thanks for your help πŸ˜‰
Want results from more Discord servers?
Add your server