DataTables / Buttons

Buttons is an extension for DataTables that adds control buttons to the table.
Other
137 stars 149 forks source link

Buttons do not work when using DataTable with ajax #197

Open danielsbarros opened 11 months ago

danielsbarros commented 11 months ago

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']
} );
AllanJard commented 11 months ago

See this example. You need the dom parameter.