Skip to content

Editable code block inside a Data grid Cell #4285

Discussion options

You must be logged in to vote

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 on TextArea which, in combination with setting the maxRows will set an absolute height without resizing. Using the a formula you can set an absolute height of the CodeEditor 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…

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@krisantrobus
Comment options

@serifluous
Comment options

@nkrantz
Comment options

@krisantrobus
Comment options

Answer selected by krisantrobus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants