Disable view action when click on row
Hi, how can i disable click on row and open view modal? I only want open modal when i click on View button and not when i click on the row.
thanks
7 Replies
https://filamentphp.com/docs/3.x/tables/advanced
"You may allow table rows to be completely clickable by using the $table->recordUrl() method:"
When you pass null it won't be clickable anymore.
Thanks, but i 'd want the opposite behaviour: i want to disable "rows to be completely clickable"
What he said answers your original question : the row will no longer open the view modal when you click on it.
If you want a different behaviour, you have to describe what you want in a better way because
i 'd want the opposite behaviour: i want to disable "rows to be completely clickable"doesn't make much sense
Ok, try to explain better:
in my table when i click on a row, i mean not in a particular column but in every part of the single row, it causes the open of the modal view record. It's clear this? Ok i want to disable this behavior, I want when I click on the row the modal window not to open.
It's more clear now?
As I said, @igorclauss answer is exactly what you wanted.
When you pass null it won't be clickable anymore.
just add this after your $table
->recordAction(null)->recordUrl(null)
good! thnks a lot
it solve the case