F
Filament14mo 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.OP14mo ago
Anyone has a idea?
LeandroFerreira
LeandroFerreira14mo ago
using ->label('new value') in the CreateAction?
Wirkhof
Wirkhof14mo 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
ChesterS14mo 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(),
];
}

Did you find this page helpful?