Button doesn't show using ajax and php
Button doesn't show using ajax and php

HI,
can somebody help i tried to add button to datatable but can't.
below is the script:
var dataTable = $('#user_data').DataTable({
"processing":true,
"serverSide":true,
"order":[],
"ajax":{
url:"fetch.php",
type:"POST"
},
"columnDefs":[``
{
"targets":[0,7],
"orderable":false,
},
],
"scrollX":true,
"scrollY":false,
"scrollCollapse":true,
"fixedColumns": {leftColumns: 3},
"buttons": [
'copy', 'csv', 'excel', 'pdf', 'print'
]
});
All script above are work with ajax php, except button.
Please help.
Thanks,
Zamy
This discussion has been closed.
Answers
Did you add the required buttons JS and CSS libraries for these buttons?
You can use the Download Builder to get the proper set of libraries.
Kevin
You also need to specify the
B
option indom
.Colin