Set maxHeight for Data Grip? #3812
-
Hi, I am using DataGrip to display a table in Twilio Flex but I am not finding a way to set the maxHeight. A workaround that I found is wrapping the DataGrid with Box container but if I do that the stickyHeader of the Data Grip does not work. This is my code:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hey there @fabiantorress! 😊 Great to see you back. I remember our last adventure through code-land together. I'm diving into your DataGrid dilemma now and will circle back with a full answer shortly. Hang tight! |
Beta Was this translation helpful? Give feedback.
-
Disclaimer: This is a very experimental bot using OpenAI's GPT-4. The answers may not be correct, a human will review the answer and update it if necessary. Sorry, I don't know how to help with that. I did do a search though, and I managed to find these other Discussions that might be similar or related to your question. Give them a read to see if they answer your question. If they do, head back here and update this discussion and mark it as answered, pointing others to the related discussion:
|
Beta Was this translation helpful? Give feedback.
-
Hey @fabiantorress - can you share a reproduction of the sticky header not working in a CodeSandbox? When I try your pasted code, the sticky header works for me. |
Beta Was this translation helpful? Give feedback.
Hi @nkrantz, I found the problem. When I created my custom plugin using the command "twilio flex:plugins:create name-of-plugin --install --flexui2" as suggested by the Twilio Flex documentation, it added an old version of Twilio Paste to the package.json. Removing the dependency and using the Twilio Paste that comes with the plugin solved my issue (without specifying a version of Twilio Paste inside the package.json).