F
Filament•2mo ago
nowak

How to set ->recordAction(null) and ->recordUrl(null) conditionally in custom column?

I am working on a custom column class and view, which should function as a confirmation slider. The issue is that when I drag the slider handle and release outside the slider component, the record row is receiving a click, which triggers the table rows recordAction. I could set ->recordAction(null) and ->recordUrl(null) on my table, but I might not always want to disable row clicks on all tables that use this custom column. So I was wondering if I could somehow conditionally set the recordAction table prop to null when my slider is in the dragging state, to avoid the record click being triggered while interacting with the confirmation slider?
3 Replies
Lara Zeus
Lara Zeus•2mo ago
if this works for you >Ahh I needed ->recordAction(null)! add it here and mark it as solution so other find it two 🙂
nowak
nowakOP•2mo ago
Unfortunately this is not the answer to my question. I want to set this from a custom column, and not on the table itself.
awcodes
awcodes•2mo ago
Well it’s not a column specific issue. The column shouldn’t define the row action. The table has that responsibility.
Want results from more Discord servers?
Add your server