filament-excel icon indicating copy to clipboard operation
filament-excel copied to clipboard

Add askForColumns method

Open dmandrade opened this issue 1 year ago • 3 comments

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.

image image

dmandrade avatar Sep 14 '22 18:09 dmandrade

Thanks for your PR. I will check this after my holiday.

pxlrbt avatar Sep 14 '22 18:09 pxlrbt

Hello, Would it be possible to merge this PR in the main branch ? I found this feature super useful ! Thank you !

vincent-tarrit avatar Feb 01 '24 21:02 vincent-tarrit

@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.

pxlrbt avatar Feb 02 '24 06:02 pxlrbt