F
Filament6mo 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.6mo ago
Anyone has a idea?
LeandroFerreira
LeandroFerreira6mo ago
using ->label('new value') in the CreateAction?
Wirkhof
Wirkhof6mo 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
ChesterS6mo 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
More Posts