F
Filament12mo ago
Quin.

Change the create button label

Hello! i have in the resource a button that's redirects you to the create page but i don't know how to change the label of that button, anyone has a idea?
No description
4 Replies
Quin.
Quin.OP12mo ago
Anyone has a idea?
LeandroFerreira
LeandroFerreira12mo ago
using ->label('new value') in the CreateAction?
Wirkhof
Wirkhof12mo ago
I think this is not implemented for tables on list pages. For create/edit pages you can set the custom create button label via the getHeaderActions method.
ChesterS
ChesterS12mo ago
As others have said, it depends on where that action is defined 1) In a resource, it should be in the headerActions of the table 2) in the page (eg ListCategories.php) it should be in the getTableActions method (it should look something like this)
protected function getTableHeaderActions(): array
{
return [
CreateActioni::make(),
];
}
protected function getTableHeaderActions(): array
{
return [
CreateActioni::make(),
];
}
Want results from more Discord servers?
Add your server