Please help, Record not resolved in visible() method of a SelectColumn
I’m trying to conditionally show a column based on the current record like this:
But the dd($record) inside the visible() callback never gets triggered, and it seems like the $record is not being resolved at all.
Is visible() supposed to have access to the record for SelectColumn, or is it evaluated globally (i.e., not per record)?
Would love some clarification on this. Thanks!
3 Replies
Try to add
->live
if you can.
Or use something like thisOptions should be configured to us fn() => too.
Yeah correct. Thanks