RadioGroup()
Add radio group to dialog view, each child view contains Radio Button
Constructor
RadioGroup(id: number)
RadioGroup(id: number, defaultButtonId: number)
Parameters
| Parameters | Type | Description |
|---|---|---|
| id | number | Unique identifier or label of the button, the id is used by Dialog:getValueById() |
| defaultButtonId | number | Optional radio button id that should be selected by default |
Notes
- The second parameter is optional
defaultButtonIdshould match one of theRadioButtonids added into this group- If the provided button id is not found, the dialog falls back to the first radio button
- The default is only the starting answer: once the user has answered, their saved answer is used on every later run
- Like every dialog item, it has
showWhen(),hideWhen()andsetHelp()