Open custom modal action on record click
I need to open a custom modal action on row click. I've tried in
recordUrl()
and in recordAction()
with no luck.Solution:Jump to solution
if you create a custom action, you should add in the table
```php
$table
->recordUrl(null)...
9 Replies
Did you add a row action in the table?
What do you mean with row action? Right now I have an action to open a custom modal, but I need to open it when i click on the row and not on the button.
Could you share your action?
Tables\Actions\Action::make('Test')
->modalContent(fn (Model $record): View => view(
'filament.pages.elemento-ventas',
['ventas' => $record->pivot->ventas],
)),
Solution
if you create a custom action, you should add in the table
Ohh nice!! Its working
So to make it work, I need to have the action in the row? I can not hide it?
yes, this is a row action π
Well, atleast I can hide it in the action group
Thanks a lot Leandro!