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?
4 Replies
Anyone has a idea?
using
->label('new value')
in the CreateAction?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.
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)