MedicOneSystems / livewire-datatables

Advanced datatables using Laravel, Livewire, Tailwind CSS and Alpine JS
https://livewire-datatables.com/
MIT License
1.19k stars 258 forks source link

How to change default file name, format, and sheet name? #501

Open mehrdad-nateghi opened 1 year ago

mehrdad-nateghi commented 1 year ago

I want to change these items.

1- file name and format I did it with the override export method in my class and return this line return Excel::download(new DatatableExport($results),"newFileName.xls");

2- For change sheet name I haven't found any solution

diwanmuhamad commented 1 year ago

what class? my datatable export always give the same name DatatableExport.xlsx and I want to know how to change that