How to add buttons to DataTables?

How to add buttons to DataTables?

cchintall83cchintall83 Posts: 36Questions: 11Answers: 0

Link to test case: https://jsbin.com/cokunuj/edit?html,output
Debugger code (debug.datatables.net): None
Error messages shown: None
Description of problem: I want to add several buttons to the table linked. The buttons are - Export ( copy, excel, csv, pdf, print results, and searchBuilder. I would appreciate a little help with the js code for the production of these buttons. If I use a DataTablesEditor generated table these buttons can be easily added which is not the case using DataTables download builder.

Thanks for any review!
John

Answers

  • kthorngrenkthorngren Posts: 20,150Questions: 26Answers: 4,736

    Look at the console, you are getting this error:

    Uncaught ReferenceError: jQuery is not defined

    When loading the JS files order is important. jquery.js needs to be loaded before the other JS files.

    Kevin

Sign In or Register to comment.