$('#myTable').DataTable({ dom: 'Bfrtip', buttons: ['copy', 'excel', 'pdf'] }); Use code with caution. 3. Customizing Download Buttons
new DataTable('#myTable', { layout: { topStart: { buttons: ['copy', 'csv', 'excel', 'pdf', 'print'] } } }); Use code with caution. Legacy Method (DataTables 1.x) jquery datatable download button
You can customize the text, file name, and even the content of the exported files by passing objects into the buttons array. DataTableshttps://datatables.net Buttons - DataTables $('#myTable')