"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: 67Questions: 24Answers: 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: 62,377Questions: 1Answers: 10,234 Site admin
    Answer ✓

    buttons can't be just a string:

    "buttons": "excel",

    Try:

            "buttons": ["excel"],
    

    Allan

This discussion has been closed.