/
Dynamic Labels
Dynamic Labels
Jacques Marais
Owned by Jacques Marais
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
View XML
<info label="info_label.country_division"> <binding variable="state" /> </info>
Backing unit
Unit CountryUtil; string countryDivision; void init() { countryDivision = "province"; }
en.lang file entry
info_label.country_division={CountryUtil:countryDivision}
Related content
<select/>
<select/>
Read with this
<view/>
<view/>
More like this
Layout & Offset
Layout & Offset
Read with this
<info/>
<info/>
More like this
Quick Reference
Quick Reference
Read with this
<ui/>
More like this