Add custom row to Export Action
Hey all, quick question —
Is it possible to add a custom row to the CSV export? For example, a row with totals or some additional info at the bottom of the export?
I know I could write my own implementation for this, but I was curious if there's a way to do it using the native export action.
Cheers!
Solution:Jump to solution
There doesn’t appear to be a native way of doing this, so I solved it by extending and customising the PrepareCsvExport job, as per the documentation here: https://filamentphp.com/docs/3.x/actions/prebuilt-actions/export#customizing-the-export-job
1 Reply
Solution
There doesn’t appear to be a native way of doing this, so I solved it by extending and customising the PrepareCsvExport job, as per the documentation here: https://filamentphp.com/docs/3.x/actions/prebuilt-actions/export#customizing-the-export-job