How to disable click to edit on particular column in a table row?
I have a table with an extra column that contains a custom blade component with an external link. It works fine, but when I click on it, the edit modal is also triggered. I have tried the following with no luck:
Is there something I am missing here? What do I have to do to disable the click on this table cell? If it matters, it is an edit modal that is triggered.
3 Replies
Maybe you need to disable clickable rows
https://filamentphp.com/docs/3.x/tables/advanced#record-urls-clickable-rows
recordUrl(null)
or
recordAction(null)
Hey thanks, yeah I saw that, the problem is I need to keep the clickable functionality for the other table columns so I'm trying to just disable it for this one column but it's proving rather difficult π
when I set
->recordAction(null)
it successfully disables, but for the whole row (instead of just the column)Why not use
->url(null)
instead of custom blade?