Why Button is not showing.
Why Button is not showing.
helloaliimran
Posts: 2Questions: 2Answers: 0
<link href="~/DataTables/datatables.min.css" rel="stylesheet" />
$("#tblbill").DataTable({
dom: 'Bfrtip',
buttons: [
'copyHtml5', 'excelHtml5', 'pdfHtml5', 'csvHtml5'
]
});
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Perhaps you are not making any reference to the buttons javascript file.
See the documentation:
https://datatables.net/extensions/buttons/
You need to be sure to select the HTML5 export options and any dependencies (e.g. JSZip for Excel) that you need as well in the download builder.
Allan