Choices

Choices tag, create a group of choices, radio, or checkboxes. Shall be used for a single or multi-class classification.

Parameters

Param Type Default Description
name string name of the group
toName string name of the element that you want to label
[choice] single | single-radio | multiple single single or multi-class
[showInline] boolean false show items in the same visual line
[required] boolean false validation if choice has been selected
[requiredMessage] string message to show if validation fails

Example

<View>
  <Choices name="gender" toName="txt-1" choice="single-radio">
    <Choice alias="M" value="Male" />
    <Choice alias="F" value="Female" />
  </Choices>
  <Text name="txt-1" value="John went to see Marry" />
</View>