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 11 Current »


Description

The check box input widget allows for the capturing of data of type boolean.

The widget allows for binding to a basic data type variable directly or to an object instance attribute.

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

Model object attribute
persistent object Farmer {
    .
    .
    // Attributes for messaging opt-in
    bool emailMessaging;
    .
    .
}
View XML
<checkbox label="checkbox.opt_in_email_messaging">
    <binding variable="farmer">
        <attribute name="emailMessaging"/>
    </binding>
</checkbox>
Backing unit
Farmer farmer;
.
.
void init() {
    farmer = Farmer:user();
}
en.lang file entry
checkbox.opt_in_email_messaging = Opt in for messaging by E-mail:

<checkbox> example screenshots




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.