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


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.


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


OK, I see how to do that. Thanks.