laravel-datatables-buttons icon indicating copy to clipboard operation
laravel-datatables-buttons copied to clipboard

Make custom export button dropdown and export only current page

Open holdon1996 opened this issue 2 years ago • 1 comments

Summary of problem or feature request

When exporting excel using options include serverSide always export all data but not the current page. I want to add a new button in the dropdown button. example: Excel(current page) and make it export only data visible current page. Could you tell me how to make it?

Code snippet of problem

System details

  • Operating System: Windows
  • PHP Version: 7.4.33
  • Laravel Version: 8.75
  • Laravel-DataTables Version: 9.21

holdon1996 avatar Nov 11 '23 14:11 holdon1996

Use the client-side excel button. Make sure you don't include the server-side button's script as it overrides the default excel button. Or rename the button to something else.

yajra avatar Nov 14 '23 00:11 yajra