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
igorclauss
igorclauss3mo ago
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.
ocram82
ocram82OP2mo ago
Thanks, but i 'd want the opposite behaviour: i want to disable "rows to be completely clickable"
ChesterS
ChesterS2mo ago
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
ocram82
ocram82OP2mo ago
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?
ChesterS
ChesterS2mo ago
As I said, @igorclauss answer is exactly what you wanted.
When you pass null it won't be clickable anymore.
Hung Thai
Hung Thai2mo ago
just add this after your $table ->recordAction(null)->recordUrl(null)
ocram82
ocram82OP2mo ago
good! thnks a lot it solve the case
Want results from more Discord servers?
Add your server