"uncaught exception: Unknown button type: print" and I'm only wanting to offer Excel-Export

"uncaught exception: Unknown button type: print" and I'm only wanting to offer Excel-Export

mbaasmbaas Posts: 61Questions: 22Answers: 1

Example (here)[http://mbaas.de/DataTable%20Buttons.html]
(Debugger: akefek)[http://debug.datatables.net/akefek]

I am trying to make just Excel-Export available via the buttons-plugin with the option "buttons":"excel" - but when I load the page, I get the error shown in the title. What am I doing wrong?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 54,714Questions: 1Answers: 8,560 Site admin
    Answer ✓

    buttons can't be just a string:

    "buttons": "excel",

    Try:

            "buttons": ["excel"],
    

    Allan

This discussion has been closed.