textArea
textArea
is a multi-line text editor field.
-
XML element:
textArea
-
Java class:
JmixTextArea
Basics
textArea
mostly replicates the functionality of the textField component.
Unless set to a fixed height, textArea
adjusts its height automatically based on its content. The default and minimum height is two rows of text.
An example of textArea
:
<textArea label="Description"
width="300px"
value="A marketing department is a group of marketing specialists responsible for planning, creating, and monitoring marketing activities within a company"/>
Attributes
id - allowedCharPattern - autocapitalize - autocomplete - autocorrect - autofocus - autoselect - classNames - clearButtonVisible - colspan - dataContainer - enabled - errorMessage - height - helperText - invalid - label - maxHeight - maxWidth - minHeight - minWidth - pattern - placeholder - property - readOnly - required - requiredIndicatorVisible - themeNames - value - valueChangeMode - valueChangeTimeout - visible - width
Handlers
AttachEvent - BlurEvent - ClientValidatedEvent - ComponentValueChangeEvent - CompositionEndEvent - CompositionStartEvent - CompositionUpdateEvent - DetachEvent - FocusEvent - InputEvent - KeyDownEvent - KeyPressEvent - KeyUpEvent - statusChangeHandler - validator
Чтобы сгенерировать заглушку обработчика в Jmix Studio, используйте вкладку Handlers панели инспектора Jmix UI, или команду Generate Handler, доступную на верхней панели контроллера экрана и через меню Code → Generate (Alt+Insert / Cmd+N). |
See Also
See the Vaadin Docs for more information.