filament-excel
filament-excel copied to clipboard
Add askForColumns method
Add an askForColumns()
method to let the user build a report. This is especially useful when you have a lot of columns and want to let the user pick the ones they need and customize the display order and format for each one.
- create a askForColumns functionality
- move handleExport to Exportable trait to reduce code duplication
- in ExportAction checks if the record property is present to pass to hydrate, so we can use the action individually on each record on table, useful to use in custom exports. Ex: A report with all orders from a customer.
Thanks for your PR. I will check this after my holiday.
Hello, Would it be possible to merge this PR in the main branch ? I found this feature super useful ! Thank you !
@vincent-tarrit The PR was quite large and I started reviewing it some time ago. But I didn't find the time to do all the refactoring needed, yet.