[QUESTION/FEATURE REQUEST]: Merged header cells ("colspan")
See original GitHub issueWhat 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:
- Created 5 years ago
- Comments:9 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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).
Any updates?