Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Current »


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.

View XML
<textarea label="textarea.farm_address">
    <binding variable="farmer">
        <attribute name="farmAddress"/>
    </binding>
</textarea>
Backing unit
Farmer farmer;
 
void init() {
	farmer = Farmer:new();
}
.
.
.
textarea.farm_address = Farm address:

<textarea> example screenshot


scrolling <textarea> screenshot

resized <textarea> screenshot




Additional Mentions and References



  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.