Button options not working

Button options not working

herrnbraeuherrnbraeu Posts: 2Questions: 1Answers: 0

Hi,
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

Answers

  • kthorngrenkthorngren Posts: 21,315Questions: 26Answers: 4,948
    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.

    http://live.datatables.net/xejujuhe/2/edit

    Kevin

  • herrnbraeuherrnbraeu Posts: 2Questions: 1Answers: 0

    Thanks!

Sign In or Register to comment.