TanStackT
TanStackโ€ข4y agoโ€ข
4 replies
wet-aqua

Multiple column groups + toggle visibility

Hi ๐Ÿ™‚

We are working on a big admin table.
In the design we have some of the columns that have a toggle button in the headers which should show/hide 1-3 additional columns to the right of the clicked column.

simplified example:

| id | name | location <+> |
----------------------------
| .. | john |    DK        |

after "location" toggle click
| id | name | location <-> | city | zip |
-----------------------------------------
| .. | john |    DK        | CPH  | 123 |


I was looking through the api, and only found single grouping, which doesn't seem to fit conceptually with what we want to do.

Any suggestions of part of the API that could be a good fit for this, or should we go with custom visibility state and template state?

- Kasper
Was this page helpful?