Replies: 1 comment
-
It's a bit verbose, but I've been able to use
|
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I use the useFlexLayout Hook of react-table. In the definition of my columns I can define width, minWith and maxWith and these should be used to render each cell of that column. The strange thing is: minWidth and width are applied, but maxWidth isn't. But if I use some invalid value for maxWidth, for example -1, it is still not applied but the behaviour is correct. I will post the source code of my Table component as well as my column definition.
What I am trying to do is set a max width for a column so the whole column is not resizing further than the defined with while the other columns can resize dynamically.
My Table Component:
Column Definition that does not work:
Result of the Column Definition that does not work:
Hacky Column Definition that work:
Result of the Hacky Column Definition that work:
My Question here is: What am I doing wrong and how do I provide this hack that I don't even understand?
Thanks for helping,
Robin
Beta Was this translation helpful? Give feedback.
All reactions