Wrapping/stacking columns to save horizontal space #2888
-
Is there a way to group columns and their respective cells in each row so that the component rendering can arrange the markup to make this sort of responsive table possible with react-table 7+? I've seen a handful of CSS guides (1, 2) that do that by trading the standard |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
You can use media query hooks in the useMemo function for the columns to render dynamically based on the size of the screen. Then you can use the Cell function in Column options 👉 https://react-table.tanstack.com/docs/api/useTable#column-options |
Beta Was this translation helpful? Give feedback.
You can use media query hooks in the useMemo function for the columns to render dynamically based on the size of the screen.
Then you can use the Cell function in Column options 👉 https://react-table.tanstack.com/docs/api/useTable#column-options