Responsive column hiding #773
PeterSchulzNL
started this conversation in
General
Replies: 1 comment 1 reply
-
If we get a full sandbox created, we could add it to the column hiding docs |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Some people have been asking for responsive column hiding like datatables. Here is some code to add this feature to MRT.
Column visibility is recalculated on windows resizing and density changes. Suggestions for improvement are welcome.
The extra margin is required as columns can take up a little more space than defined in column size. The minColumns parameter helps to prevent hiding all or essential columns e.g. in case of row action and row selection columns. When the minColumns requires more space than available the horizontal scrollbar appears.
Hope this helps other as well!
Beta Was this translation helpful? Give feedback.
All reactions