Datatables-buttons not showing the buttons

Datatables-buttons not showing the buttons

ahmedhelaleamtechahmedhelaleamtech Posts: 1Questions: 1Answers: 0
edited December 2019 in Free community support

Hello,
I'm using datatables and I want to add datatables-buttons plugin to have export and print buttons
here is the code
$(".table").DataTable({
dom: "Bfrtip",
buttons: ["print", "copy"]
});

shell I import anything from datatables-buttons ?
links for what i'm using
https://www.npmjs.com/package/datatables-buttons
https://datatables.net/extensions/buttons/
https://www.npmjs.com/package/datatables
I'm using vuejs

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    The table initialisation is correct, so I suspect you're not including the correct libraries. If you look at this example here, ensure you have the necessary files listed on the Javascript and CSS tabs beneath the table.

    Colin

This discussion has been closed.