question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[QUESTION/FEATURE REQUEST]: Merged header cells ("colspan")

See original GitHub issue

What version of React-Table are you using?

6.8.2

What bug are you experiencing, or what feature are you proposing?

I cannot find a way to mimic a Table’s “colspan” within React-Table. I’m aware that it uses <div> and not <table>, and so there is no built-in easy way to include, but it’d be useful to have a way to create merged cells (in my case, for a header).

Note that I’m not referring to the current column grouping, which gives both the column header and a group header, but rather something more like this (Apologies I can’t include an image - GitHub isn’t allowing me to upload an image, for some reason. Hopefully this standard HTML markup will explain what I’m referring to.):

<table class="table-root">
    <thead>
        <tr>
            <th>Header 1</th>
            <th>Header 2</th>
            <th colspan="3">Colspan header</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>one</td>
            <td>two</td>
            <td>three</td>
            <td>four</td>
            <td>five</td>
        </tr>
    </tbody>
</table>

Is this possible to do now? Would you be interested in having this feature added?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
gary-menzelcommented, May 3, 2018

It is not possible to do this in ReactTable and cannot really be done in the current design.

This type of thing may be considered in an upcoming major rewrite (there is no timetable on the delivery of this - so if you need this feature now you should probably use a different package).

0reactions
faustAbccommented, Nov 11, 2021

Any updates?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Merged header cells ("colspan") · Issue #943 · TanStack/table ...
I cannot find a way to mimic a Table's "colspan" within React-Table. ... [QUESTION/FEATURE REQUEST]: Merged header cells ("colspan") #943.
Read more >
How to merge cell headers in a Reactive table - OutSystems
Hi all,. I need help with a simple and useful functionality that does not exist in Reactive apps for the Table widget: split...
Read more >
Want to merge cells of table in JIRA comment - Atlassian
I would like to merge the cells of the top row in JIRA comments/summary like this. This capture comes from Confluence. But JIRA...
Read more >
Merge and color Headers - UiPath Forum
Excel for Merging and colouring the rows/cells. We create the row for Points, assign the point value, add it at the beginning of...
Read more >
Colspan / Cell-merge in Ninja Tables - WP Manage Ninja
To combine multiple cells in a row you have to give a value to your cells as #colspan# then the cell will be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found