F
Filamentβ€’10mo ago
CT

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:
Tables\Columns\TextColumn::make('deferred')
->url(null)
->action(null)
...etc
Tables\Columns\TextColumn::make('deferred')
->url(null)
->action(null)
...etc
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
LeandroFerreira
LeandroFerreiraβ€’10mo ago
Maybe you need to disable clickable rows https://filamentphp.com/docs/3.x/tables/advanced#record-urls-clickable-rows recordUrl(null) or recordAction(null)
CT
CTOPβ€’10mo ago
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)
Tieme
Tiemeβ€’10mo ago
Why not use ->url(null) instead of custom blade?
Want results from more Discord servers?
Add your server