Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Description
Any label, heading or title for view components, including the view itself, can be dynamically specified using a unit variable. The variable lookup is controlled via the lang file and specified inside curly brackets using the fully qualified variable name. This includes the unit name followed by a colon followed by the variable name. Also note that the feature is not available to Helium menu items.
Example
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<info label="info_label.country_division"> <binding variable="state" /> </info> |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
Unit CountryUtil; string countryDivision; void init() { countryDivision = "province"; } |
Code Block | ||
---|---|---|
| ||
info_label.country_division={CountryUtil:countryDivision} |