Skip to content

Add support for table with two headers #3263

@wspwebben

Description

@wspwebben
  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

In my usecase I needed a table with grouped header, not only at the top of the table, but at the left side of it.
Table screenshot

I've managed to do it by adding extra columns, setting colspan/rowspan with customRender and hiding external cells with display: none. Also I had to use the groupedColumns method from ColumnManager, duplicating the code.

That's all looks like a hack after a hack, and I didn't find anything helpful for that case in the docs.

What does the proposed API look like?

I guess, the syntax should be similiar to columns prop, since the expected behavior is very similar.

The other way, there should be a method to remove some th/td from the table completely (not through styles).
For example, with customRender returns false or null.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions