RadioButtonView
The RadioButtonView control is used to present a set of mutually exclusive options to the user where only one radio button in a set can be selected at a time. When the user selects a radio button, the previously selected radio button becomes unselected. Radio buttons are grouped per parent container (View). If you want to have multiple groups of separate radio buttons, simply put each group in its own PanelView.
The RadioButtonView inherits all the methods and properties from the base class View.
Constructor:
constructor(parent: View)
Creates an instance of RadioButtonView control.parent: the View containing the control itself.
Properties:
text: string
The text to be displayed next to the radio button.checked: boolean
Specifies whether the radio-button control is checked.radioAlignment: Alignment
Defines the horizontal alignment of the text within the view. See Alignment.
Hint: Only Alignment.Left and Alignment.Right are supported.wordWrap: boolean
Controls whether the text wraps when it exceeds the width of the control. Default is false.