Versions Compared

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
languagexml
titleView XML
linenumberstrue
<info label="info_label.country_division">
    <binding variable="state" />
</info>


Code Block
languagejava
titleBacking unit
linenumberstrue
Unit CountryUtil;
 
string countryDivision;
 
void init() {
	countryDivision = "province";
}


Code Block
titleen.lang file entry
info_label.country_division={CountryUtil:countryDivision}