Buttons
Buttons copied to clipboard
Buttons do not work when using DataTable with ajax
When initializing a DataTable using ajax and buttons at the same time, the buttons never show up on screen.
var table = $('#example').DataTable( {
ajax: "data.json",
buttons: ['copy', 'excel', 'pdf', 'print', 'csv']
} );
See this example. You need the dom parameter.