Getting them download buttons to show up? How?

Getting them download buttons to show up? How?

PaladinPaladin Posts: 12Questions: 4Answers: 0
edited June 2016 in Free community support

the dom option is the most complex thing from the whole documentation page. i don't understand anything from it. Its super weird too.

So I chose to use the example provided as dom option but it doesn't show any button....

http://pastebin.com/dzqhnSP6

All I want is at least one to show up to know what I'm doing wrong... The end goal is to show up download to pdf, excel print, html5 above the table or below it.

I hope you guys can understand the dom option is too complex... It may be useful and smart if you understand how to use it but I do not. I've read and re-read and still don't.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,208Questions: 1Answers: 10,415 Site admin

    the dom option is the most complex thing from the whole documentation page. i don't understand anything from it. Its super weird too.

    Yup. It even has a note in its documentation to say that it is the most complex option. It will be improved for the next major release (if I ever get time to work on it!).

    The code you linked to looks like it should display the Buttons. Have you included the required files for those button types? A link to the page would let me offer some help.

    Allan

  • PaladinPaladin Posts: 12Questions: 4Answers: 0
    edited June 2016

    My site is https://cointrust.pw

    Also my functions.php that does the loading of the js and css files;

    http://pastebin.com/e92XCp70

    ps site uses caching through cloudflare.


    Edit my partner cleared that cache and it shows up now and works but the show results dropdown is gone now, why is that?

    Also ColReorder and Colvisibility don't work.

    Thanks for your help.

  • allanallan Posts: 63,208Questions: 1Answers: 10,415 Site admin
    Answer ✓

    but the show results dropdown is gone now, why is that?

    Because you don't have the l option in your dom parameter. See this example for details.

    Also ColReorder and Colvisibility don't work.

    Both appear to work okay for me when I load the link above. Are you getting any errors at your end?

    Allan

  • PaladinPaladin Posts: 12Questions: 4Answers: 0

    Yea I fixed it all now but was hoping you could tell me how the sortable columns can stay the way the user sorts them even when he reloads the page? Can't you set it in localstorage?

This discussion has been closed.