• Resolved inblingham

    (@inblingham)


    Wondering what is the short code to exclude column 1 from the drop down? Or, how to implement and where? Please point me in the right direction. Thought it would be activated by adding it in the shortcode:
    [table id=2 datatables_fixedcolumns=”left” datatables_colvis=”true” datatables_colvis_aiExclude=”1″ /] I am sure that it is wrong, nothing changes. So…assistance appreciated.

    https://www.ads-software.com/plugins/tablepress/

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Unfortunately, those settings are not available as a Shortcode parameter, but you can achieve this with this code which needs to be added to the “Custom Commands” textfield on the “Edit” screen of the table:

    "oColVis": { "aiExclude": [ 0 ] }

    That should exclude the first column from the dropdown (the 0 means first column, as counting starts with 0 in that code).

    Regards,
    Tobias

    Thread Starter inblingham

    (@inblingham)

    Thank-you Tobias! Worked perfectly.
    Two other questions, if you do not mind, would be how to: 1) decrease height of cells & 2) add a horizontal scroll bar at the top of the table? Can be viewed at: https://energeticfitness.com/technology/how-it-works/pemf-comparison-tool/

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    good to hear that this worked!

    For decreasing the row height, you’ll have to remove the margin around the images in the table cells. For that, please add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    #content .tablepress-id-2 img {
      margin: 0 !important;
    }

    For the horizontal scrollbar: Sorry, I’m not aware of a solution for that. Browsers simply only add one at the bottom of a scrollable element.

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ColVis Exclude?’ is closed to new replies.