smnedelko / PixelAdmin

Issue tracker repository
6 stars 0 forks source link

datatable buttons not showing up #22

Open arfathr101 opened 6 years ago

arfathr101 commented 6 years ago

Hi, I'm having trouble with datatables. the buttons option just does not work. No buttons(export/csv/pdf...) being generated. I tried this:

$(document).ready(function () {
$('#myTable').DataTable({
dom: 'Bfrtip',
buttons: [
'copyHtml5', 'excelHtml5', 'pdfHtml5', 'csvHtml5'
]
});
});

also withbuttons: ['copy', 'pdf', 'excel'], but no result. And no errors showing up as well. Other functions such as paging, sorting, search are working though. Would the template break if I regenerate the build using builderapp and excluding datatables? i intend to load the datatable scripts and styles separately. IMHO, it would be better if all the selected plugins/component script/style files are kept separate, instead of merging into one single pixeladmin.* file.