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

    (@meitar)

    From this post:

    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']

    As you may know, the drop-down menu for page length is represented by the l option. So, putting this all together for your desired effect, just add the following attribute/value pair to your shortcode:

    datatables_dom='T<"clear">frtip'

    You can also go to the plugin’s settings screen where you can enter a perhaps more familiar JSON object to represent the default DataTables options for all your tables.

    Thread Starter josiah820

    (@josiah820)

    That did it! Thanks so much!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Modifying DOM’ is closed to new replies.