Radio ID
Posted: Sun Nov 20, 2016 10:29 pm
It seems that the Radio class does not accept the ID attribute.
At least I need to change from code the label of the different radio options: I thought was possible to do something like this:
In the xml file I would have
<radio id="ps_radio_dist" notify="active">
<item ID="km_label" >km</item>
<item ID="miles_label">Miles</item>
</radio>
The I would like to change them from code with
moai.Set("km_label", "text", "Kilometers")
moai.Set("miles_label", "text", "Feet")
but it seems it is not allowed
At least I need to change from code the label of the different radio options: I thought was possible to do something like this:
In the xml file I would have
<radio id="ps_radio_dist" notify="active">
<item ID="km_label" >km</item>
<item ID="miles_label">Miles</item>
</radio>
The I would like to change them from code with
moai.Set("km_label", "text", "Kilometers")
moai.Set("miles_label", "text", "Feet")
but it seems it is not allowed