Hi everyone I want to set the export file name to my datatable how do i do so using jquery datatable , can someone please help me out with this , thanks
$(document).ready(function() {
$('#example').DataTable( {
dom: 'Bfrtip',
buttons: [
{
extend: 'excelHtml5',
title: 'Data export'
},
{
extend: 'pdfHtml5',
title: 'Data export'
}
]
} );
} );
I just come to know that by default it takes page-title as export file-name. So I hack it and change the tilte of the page using Jquery.
$('title').html("Your custom filename");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With