Buttons icon indicating copy to clipboard operation
Buttons copied to clipboard

Buttons do not work when using DataTable with ajax

Open danielsbarros opened this issue 2 years ago • 1 comments

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']
} );

danielsbarros avatar Dec 12 '23 22:12 danielsbarros

See this example. You need the dom parameter.

AllanJard avatar Dec 12 '23 22:12 AllanJard