I want to generate dynamic ExportColumn!
Is there anyway to access $record inside
getColumns()
, in my case, I want to generate dynamic ExportColumn! i.e., if I have a JSON field, I want to break it down to multiple columns while exporting.1 Reply
Yes, you can access $record in the ->formatStateUsing closure. For example: