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

    (@meitar)

    If you simply want to disable the DataTable enhancements, add the no-datatables value to the class attribute of your shortcode. If you want to remove only those export buttons, you’ll need to reinitialize the DataTable with some custom JavaScript and supply your own initialization parameters.

    You can have a look at the igsv-datatables.js file of this plugin and the “Initialising Datatables” section of the DataTables installation guide to learn more.

    In the future I may add some attributes to the shortcode to make customizing DataTables initialization options easier but for now you still need to initialize the DataTable yourself if you want custom init options.

    Plugin Author Meitar

    (@meitar)

    If you update to version 0.9, released tonight, you will be able to customize which elements appear in your table through the new datatables_dom shortcode attribute, which is passed to the DataTables dom option. The default value this plugin uses is TC<"clear">lfrtip. The T represents the DataTables TableTools extension, which generates the CSV, PDF, and a few other buttons, while the C represents the DataTables ColVis extension, which generates the “Show/Hide Columns” button. So, to remove the TableTools and ColVis buttons from your table, use a shortcode like this:

    [gdoc key="ABCDEFG" datatables_dom='lfrtip']

    Thread Starter ozkanarrslan

    (@ozkanarrslan)

    thats great and now clean looks meitar ?? wonderful plugin ?? potential is just sky ??

    Hi Meitar,
    thanks for linking me to this page.
    But I still don’t know what to do exactly.
    I’m not a experienced programmer.
    I just want to get rid of these:
    <The T represents the DataTables TableTools extension, which generates the CSV, PDF, and a few other buttons,>

    If you can tell me what script to write at exactly on wich place I would be mostly gratefull.
    Do I do this on this page?
    <Inline Google Spreadsheet Viewer Settings>

    Many thank’s in advance!
    Regards, Amand

    PS I would like to donatie to your great plugin, but I have no idea white what kind of amount I will not offend you. Can you give me an indication?

    Plugin Author Meitar

    (@meitar)

    If you can tell me what script to write at exactly on wich place I would be mostly gratefull.

    Instead of

    [gdoc key="ABCDEFG"]

    write:

    [gdoc key="ABCDEFG" datatables_dom='lfrtip']

    I would like to donatie to your great plugin, but I have no idea white what kind of amount I will not offend you. Can you give me an indication?

    Donations are never offensive, regardless the amount. ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘dont show csv, pdf etc’ is closed to new replies.