Support » Plugin: TablePress » How to merge cells?

  • Resolved DickRaney

    (@dickraney)


    I see reference to #colspan# in support threads, but don’t see any documentation on how to use it or how it works.

    How can I merge cells?

    Note: I will be using a responsive table or fixed (left) column table.

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    For merging cells, you can use the “colspan” and “rowspan” buttons below the table input fields. There’s also a “?” button that will open a dialog explaining how to use these.

    Note that you will not be able to use any of the JavaScript features (like sorting, search, pagination), but also not the fixed left column or the collapse mode of the Responsive Tables Extension (the scroll and flip modes will work).
    This is due to the external DataTables JS library not supporting tables with merged cells.

    Regards,
    Tobias

    Can I mix responsive-scroll and fixedheader when I am also using #colspan# in some of the cells, like this?
    [table id=4 responsive=scroll datatables_fixedheader=top datatables_fixedheader_offsettop=71 /]

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no, as FixedHeader relies on the DataTables JS library (which can not be used with merged cells), you can not use FixedHeader here.
    Using the scroll mode with this table is however possible.

    Regards,
    Tobias

    Thanks for the SPEEDY reply!!!

    So, If we get rid of merged cells, will we be able to combine Scroll mode and FixedHeader?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no, I’m afraid that won’t work either, as (in addition to the incompatibility with merged cells), the actual fixed header element will not scroll horizontally (as it’s basically independently positioned on the page).

    Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to merge cells?’ is closed to new replies.