• Resolved precisioncomputing

    (@precisioncomputing)


    I really love this pluggin and it is almost giving me exactly what I require but I would like to tidy up / remove the parts that I do not need.

    I do some calculations for a league table in Google Sheet itself so its puts the team with the most points on top. I would like to remove the Show entries, the show hide columns copy etc…
    All I want to utilise of this pluggin really is the nice way that it converts the Google Sheet into a ‘nice’ table format.

    I would love to see the pluggin get some options within the WordPress Dashboard with tick button options to show or hide these options.

    Other than that I am really impressed, will support this pluggin to get what I need.

    Cheers

    https://www.ads-software.com/plugins/inline-google-spreadsheet-viewer/

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

    (@meitar)

    If all you want to do is remove the extra features like the buttons and search field and so on, you can add the class="no-datatables" attribute value to your shortcode to accomplish that.

    If you want to tweak which buttons appear or change the position of the search field and so on, you can do that as well but you have to use JavaScript to do it, as explained in the FAQ.

    That all said, I agree a GUI for all these options would be nice, but I haven’t had the resources to devote to building one along with everything else I’m doing. As always, contributions of any kind or donations of any amount are welcome. ??

    And I’m glad that, other than the lack of a GUI, the plugin serves your needs.

    It works, but after adding class=”no-datatables” css color on first row of the table disappears.

    Please let me know how to overcome this.

    Plugin Author Meitar

    (@meitar)

    The “DataTables” option is a package; it imports JavaScript and CSS, so when you remove it, you remove both. The CSS it imports is designed to work with the JavaScript features. If you don’t want the JavaScript features but you do want a specific kind of CSS styling, you’ll need to add the CSS styling yourself.

    You can do that by editing your theme’s style.css file. This is discussed in more detail on the plugin’s FAQ page.

    What if you don’t want to disable datatables all the way, but you want to just remove the buttons, but keep the search?
    I’ve spent time trying to figure this out, but I haven’t been able to get the buttons disable. At least, the code doesn’t work. I think I might have the wrong syntax.

    I have tried
    datatables_buttons_defaults=”false”
    datatables_buttons_print=”false” (just to get one button to disappear)
    datatables_buttons=”‘print'” (just to get print to show by itself)

    How do I translate the code from the datatables website into code for the plugin?

    Plugin Author Meitar

    (@meitar)

    How do I translate the code from the datatables website into code for the plugin?

    The DataTables documentation provides a listing of all options and their valid values. To use an option from the DataTables package on a table with this plugin, find the corresponding shortcode attribute (it’s almost always datatables_OPTION_NAME, where OPTION_NAME is the name of the datatables option; a full listing of supported datatables options and what their shortcode attribute is exists on the Other Notes page for this plugin) and then supply the value to the option as expected by datatables in the shortcode attribute value.

    For example, the Buttons extension documentation reads:

    Buttons can be used through the buttons configuration object with dom used to specify where the buttons should be placed

    The dom DataTables option maps, unsurprisingly, to the datatables_dom shortcode attribute, and it accepts a format string. So to use it to disappear the buttons, omit the B from the format string:

    datatables_dom="lfrtip"

    That works. Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Removing Buttons’ is closed to new replies.