How to get all of data?(buttons excel)
How to get all of data?(buttons excel)
I post data by ajax, and get a page of data(processing on the server).
now I use datatable-buttons(excel) to extend file.
how to extend all of data instead of a page of data?
buttons: [{
extend: 'copy',
text: "copy" + "<i class=\"fa fa-copy\"></i>",
className: 'btn btn-circle dark btn-outline sbold uppercase'
}, {
extend: 'excel',
text: "excel" + "<i class=\"fa fa-file-excel-o\"></i>",
className: 'btn btn-circle dark btn-outline sbold uppercase'
}, {
extend: 'pdf',
text: 'pdf' + "<i class=\"fa fa-file-pdf-o\"></i>",
className: 'btn btn-circle dark btn-outline sbold uppercase'
}, {
extend: 'print',
text: '' + "<i class=\"fa fa-print\"></i>",
className: 'btn btn-circle dark btn-outline sbold uppercase'
}, {
extend: 'colvis',
text: 'colvis' + "<i class=\"fa fa-cog\"></i>",
className: 'btn btn-circle dark btn-outline sbold uppercase'
}
]
This question has an accepted answers - jump to answer
Answers
i think it need post url by ajax again,but how to?
You have to create the file on the server-side if you are using server-side processing. See this FAQ.
Allan