There is a footer property in datatable which export the footer data
{
extend: 'csv',
footer: true,
exportOptions: {
columns: ':visible'
}
},
footer : true, property allows to export footer data to csv file.
How can I set this same property in below code
{
text: 'JSON',
action: function ( e, dt, button, config ) {
var data = dt.buttons.exportData();
$.fn.dataTable.fileSave(
new Blob( [ JSON.stringify( data ) ] ),
'Export.json'
);
}
}
Is this possible ? Please help me any solution. Thanks in advance.