FilamentF
Filament15mo 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?
Was this page helpful?