Button options not working

Button options not working

herrnbraeuherrnbraeu Posts: 2Questions: 1Answers: 0

Test Case: http://live.datatables.net/xejujuhe/1/edit

This is a simple example of a working table with Excel and PDF export support. My issue is that when I want to use the Button options, such as PDF orientation change or to only export visible columns in the Excel export, it doesn't work (the entire table is not rendered). Please help.

This question has an accepted answers - jump to answer


  • kthorngrenkthorngren Posts: 20,247Questions: 26Answers: 4,761
    edited April 2022 Answer ✓

    You are getting this error in the browser's console:

    Uncaught ReferenceError: moment is not defined

    Commenting out the filename line the buttons load. You will need to load the moment.js library.

    The JS BIN environment doesn't like "download": "open", so I commented it out too.



  • herrnbraeuherrnbraeu Posts: 2Questions: 1Answers: 0


Sign In or Register to comment.