All-in-one datatables js/css not working?

All-in-one datatables js/css not working?

jacob.steinbergerjacob.steinberger Posts: 86Questions: 18Answers: 1

Updated to a recent copy of Datatables and Editor, used the new download feature to get a bundle of everything I use. The first issue I've run into is using the 'Buttons' Extension. Even though it is included in the 'min':

/*!
Buttons for DataTables 1.2.4
©2016 SpryMedia Ltd - datatables.net/license
*/

Any call to Buttons in dom throws, "Unable to get property 'buttons' of undefined or null reference", like the all-in-one datatables.min.js doesn't actually include the downloaded/referenced extension.

I'm going to go through the release notes again in case there is an upgrade path/configuration change I missed.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,844Questions: 1Answers: 10,518 Site admin

    Very happy to take a look if you post a link to the page or show us your code. Might also be worth running the debugger on your page.

    Allan

  • jacob.steinbergerjacob.steinberger Posts: 86Questions: 18Answers: 1

    I tried getting it working with the debug editor and ended up only receiving errors about spike.js.

    I did find the error on my end, however, which I believe is due to the conversion from tableTools to Buttons. Even though my old version used the newer Buttons, the syntax I used was old and referenced tableTools (maybe it briefly did backwards compatibility). When I switched it over to the new Buttons syntax it worked without a hitch.

    PEBKAC

  • allanallan Posts: 63,844Questions: 1Answers: 10,518 Site admin
    Answer ✓

    Fantastic - good to hear you've got it resolved now :smile:.

    Allan

This discussion has been closed.