Buttons not showing up

Buttons not showing up

yetyet Posts: 43Questions: 17Answers: 1

Running DT 1.10.13.

I included the DataTables and Buttons JS file to our code.

The initialization code is like this

https://gist.github.com/zopyx/608c798330c3d46e48c74959fdce0150

However I can not see any buttons like PDF/EXcel or whatever on the page.

Also no errors on the Javascript console.

Debugger output: http://debug.datatables.net/iqijor

What could be the issue?

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,141Questions: 26Answers: 4,918

    Did you load the additional JS needed for the buttons as described here:
    https://datatables.net/download/release#Buttons

    Kevin

  • yetyet Posts: 43Questions: 17Answers: 1

    The CSS and JS files for Buttons is being loaded, checked using the browser dev tools.

  • kthorngrenkthorngren Posts: 21,141Questions: 26Answers: 4,918
    Answer ✓

    Just to be clear.... you are loading these additional scripts for the PDF and Excel buttons?

    https://cdnjs.cloudflare.com/ajax/libs/jszip/2.5.0/jszip.min.js
    https://cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/pdfmake.min.js
    https://cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/vfs_fonts.js
    https://cdn.datatables.net/buttons/1.2.4/js/buttons.html5.min.js
    

    If so then please post your code for review.

    Kevin

This discussion has been closed.