Versions Compared
Version | Old Version 10 | New Version 11 |
---|---|---|
Changes made by | Former user |
Former user |
Saved on |
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Table of Contents |
---|
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 is can also be specified as a key to a lang file entry but it is optional. Visibility bindings are also supported.
Example
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
persistent object Farmer { . . // Attributes for messaging opt-in bool emailMessaging; . . } |
Code Block | ||||
---|---|---|---|---|
| ||||
<checkbox label="checkbox.opt_in_email_messaging"> <binding variable="farmer"> <attribute name="emailMessaging"/> </binding> </checkbox> |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
Farmer farmer; . . void init() { farmer = Farmer:user(); } |
Code Block | ||
---|---|---|
| ||
checkbox.opt_in_email_messaging = Opt in for messaging by E-mail: |
Info | ||
---|---|---|
| ||
Additional Mentions and References
- Devoted section in the Helium Tutorial Lesson 10: Scheduled Functions, Flow Control, Basic Messaging
- Helium DSL and View Quick Reference