Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter morsagmon

    (@morsagmon)

    Adding more th rows may not be enough for what I’m trying to achieve.

    I need the headers to be a set of 2-3 rows, in which I’ll have both rowspan and colspan cells.

    I noticed I cannot add rowspan to the header row.

    How would you suggest I achieve this?

    Thanks!
    Mor

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Unfortunately, TablePress does not offer table head rows with more than one row. This is also the reason why rowspan is not possible there.

    If it’s just about the look of a header row, you could turn off the “Header row” checkbox and simply style the body rows so that they look like header rows. You will however not be able to use the features of the DataTables JS library then, as that does not work with tables with rowspanned/colspanned cells.

    Regards,
    Tobias

    Thread Starter morsagmon

    (@morsagmon)

    Thanks, Tobias.

    That’s what I figured out as my workaround 🙁

    What do you mean by “that does not work with tables with rowspanned/colspanned cells”?

    If I turn off the header row and just format all cells as I wish, I cannot define rowspan / colspan on this table?

    Thanks!
    Mor

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    that sentence is only in regard to the JavaScript features (like sorting, search, pagination, etc.).
    If you turn off the Header row checkbox, or use colspan/rowspan, then you can not use those features.

    Regards,
    Tobias

    Thread Starter morsagmon

    (@morsagmon)

    OK, Clear. Thanks!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    sure, you are very welcome!

    Best wishes,
    Tobias

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Multiple rows as table headers th’ is closed to new replies.