Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


Description

The text area widget is similar to the text field widget with two important differences:

  • Although it still supports binding to basic variables or object instance attributes, only string basic types are supported. As a result  text areas do not allow for additional hints, formatting and validation using a datatype XML attribute.
  • The physical widget area is larger, it is scrollable and also allows for users to resize it by dragging the bottom right corner.

 The title is specified as a key to a lang file entry and is required. A tooltip can also be specified as a key to a lang file entry but is optional. Visibility bindings are also supported.


Example

The abbreviated code snippets and screenshot below shows the use of <textarea/> with a value binding to an object instance attribute.

Code Block
languagexml
titleView XML
linenumberstrue
<textarea label="textarea.farm_address">
    <binding variable="farmer">
        <attribute name="farmAddress"/>
    </binding>
</textarea>


Code Block
languagejava
titleBacking unit
linenumberstrue
Farmer farmer;
 
void init() {
	farmer = Farmer:new();
}
.
.
.


Code Block
textarea.farm_address = Farm address:


Info
title<textarea> example screenshot



Info
titlescrolling <textarea> screenshot


Info
titleresized <textarea> screenshot




Additional Mentions and References