Change the EditAction on a RelationManager
I currently have a relationmanager which uses the static table function from it's resource like this:
Is it possible to change the
EditAction
so that when I click on Edit
it will navigate to the Edit Page instead of opening a modal window?5 Replies
You should be able to use the getRecordAction and the action returns a url() with openinnewtab ?
I can get the EditAction indeed, but not sure how to change the URL of that action to navigate to the actual Edit Page, instead of opening a modal:
Not edit action, recordaction:
https://filamentphp.com/docs/3.x/tables/advanced#record-urls-clickable-rows
been changed to recordUrl
But
recordAction
is about the whole row being clickable? I just want to navigate to the Edit page when clicking the edit button.
Right now, it seems to 'save' the record when I click the row. So that might be something else that is not working. However, it should be possible to overwrite the EditAction right?
On the normal VacancyResource
the actions work as expected, but when I load this resource in my RelationManager it doesn't work anymore. Maybe a bug? Not sure.So remove the edit button completely and add a row action with ->url()