datatables + button onclick code example
Example: datatable buttons
dom: 'Blfrtip',
buttons: [
{
extend: 'excelHtml5',
footer: true,
},
{
extend: 'csvHtml5',
footer: true,
},
{
extend: 'pdfHtml5',
footer: true,
},
],
lengthMenu: [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],