How to get multiple lines of text in a Label component?


#1

When typing in text into an editable Label component, is there a way to get multiple lines of text? As soon as I press the ENTER key, this accepts the text being typed. I also tried other combinations, such as SHIFT+ENTER.

Looking at the methods available both both Label and TextEditor, I don’t see anything obvious I can call to tell it that multiple lines are allowed.


#2

You might need to override createEditorComponent() and set it to multi-line mode.


#3

OK, I see how to do that. Thanks.