• Resolved jamestwo23

    (@jamestwo23)


    I am looking to prevent specific rows in a table from collapsing. They either contain a subheading or no data at all.

    I found the following to define which columns are not displayed… Can something similar be done with rows? If so how would it be done?

    “columnDefs”: [ { “className”: “none”, “targets”: [ 5, 6, 7, 8 ] } ]

    Thanks and I am loving this plugin!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Sorry, from what I know about the DataTables Responsive JavaScript library, something like this is not directly possible.

    Regards,
    Tobias

    Thread Starter jamestwo23

    (@jamestwo23)

    Thanks for the quick reply Tobias!

    Alternatively, is there a way to hide the +/- in specific cells?

    Thanks for any insight you can provide!

    James

    • This reply was modified 7 years, 5 months ago by jamestwo23.
    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi James,

    yes, that’s possible with some CSS code. Please try adding this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress-id-1 .row-7 .column-1:before,
    .tablepress-id-1 .row-15 .column-1:before,
    .tablepress-id-1 .row-22 .column-1:before {
    	display: none !important;
    }

    Regards,
    Tobias

    Thread Starter jamestwo23

    (@jamestwo23)

    Thanks Tobias! I’ll give a try.

    Thread Starter jamestwo23

    (@jamestwo23)

    That worked wonderfully. Thanks again.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Defining which rows don’t collapse’ is closed to new replies.