Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buttons do not work when using DataTable with ajax #197

Open
danielsbarros opened this issue Dec 12, 2023 · 1 comment
Open

Buttons do not work when using DataTable with ajax #197

danielsbarros opened this issue Dec 12, 2023 · 1 comment

Comments

@danielsbarros
Copy link

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
Copy link
Contributor

See this example. You need the dom parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants