• Resolved mosegard

    (@mosegard)


    I am trying to remove all buttons from the datatables part of the plugin, but no luck (I just want the paging, nothing else). I know I am supposed to use the shortcode datatables_buttons, but I can figure out how.

    I have tried variations of both lists of button names, false etc. – but nothing seems to do anything.

    [gdoc key=”https://docs.google.com/spreadsheets/d/ID/edit#gid=0″ use_cache=”no” datatables_searching=false datatables_order=false datatables_buttons=”” ]

    Strange thing is, if I try datatables_buttons=”csv” (or anything else in strings) then the first button “column visibility” disappears

    Great plugin by the way, love it!
    Regards. Jesper

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Meitar

    (@meitar)

    You actually want datatables_dom, not datatables_buttons. See the DataTables documentation.

    Thread Starter mosegard

    (@mosegard)

    Thank you!

    For future reference, this gives the effect I wanted;

    [gdoc key=”https://docs.google.com/spreadsheets/d/ID/edit#gid=0″ use_cache=”no” datatables_dom=”lrtip” datatables_order=false ]

    i.e. no b for button 🙂

    Plugin Author Meitar

    (@meitar)

    Cool. Just a note, unless your Sheet is pretty small and will always remain small, turning off the cache is a bad idea. That shortcode attribute is intended for development; turning it off means that every time you load the page, your server asks Google for the Sheet’s data. In other words, the visitor is stuck waiting for Google to answer the query from your website before your website even answers the visitor’s query, and this feels as slow as it sounds.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘disable buttons’ is closed to new replies.