Editable code block inside a Data grid Cell #4285
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
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 @jrodriguezcalvo! I'm here to help you with any coding issues and questions you have. Let's tackle this together! To ensure the
These approaches should help the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
Hey @jrodriguezcalvo ! Can you create a reproduction in Code Sandbox https://codesandbox.io/p/sandbox/paste-starter-kit-rj7yy?file=%2Fsrc%2Findex.tsx ? Thanks! |
Beta Was this translation helpful? Give feedback.
Hi @jrodriguezcalvo I worked on exposing the cell heights to set but with the nature of td I'm unable to set the absolute height. What I have done instead is expose the
minRows
prop onTextArea
which, in combination with setting themaxRows
will set an absolute height without resizing. Using the a formula you can set an absolute height of theCodeEditor
so they are always the same height. With text wrapping in other cells you may see the height of these components not fill content but they will always stay consistent with each other.I've updated the code in this sandbox. Resizing the window will show you the issue with text area wrapping I mentioned.
Formula, in pixels:
(20 * numTextArea…