SlideOver or EditPage

Hi all, I have the scenario where I have a resource that has an index, create and edit page. On the edit page I have a couple of relation managers. In my table on the index page I would like that when clicking the row, I go to the edit page, but when I click the EditAction then a slideOver appears (with the form). From what I've tested, it seems that slideOver only works on the action when you DON'T have an edit page. Is there a way around this? I suppose you could argue that when clicking the table row, it should go to a view page and not an edit page, but that's not what I wan't. Cheers Adam
2 Replies
Adam Holmes
Adam HolmesOP3mo ago
Bump
LeandroFerreira
LeandroFerreira3mo ago
I would like that when clicking the row, I go to the edit page https://filamentphp.com/docs/3.x/tables/advanced#record-urls-clickable-rows when I click the EditAction then a slideOver appears (with the form) Create a custom edit action with slideOver
Tables\Actions\Action::make('customEditAction')
->modal()
->slideOver()
->fillForm(fn (YourModel $record) => $record->attributesToArray())
->form([
//...fields
])
->action(function () {
//...
}),
Tables\Actions\Action::make('customEditAction')
->modal()
->slideOver()
->fillForm(fn (YourModel $record) => $record->attributesToArray())
->form([
//...fields
])
->action(function () {
//...
}),
Want results from more Discord servers?
Add your server