ChoiceGroup
Radio buttons let people select a single option from two or more choices.
#
PropertiesName | Type | Default | Description |
---|---|---|---|
value | string | key value of the selected option. | |
label | string | Descriptive label for the choice group. | |
data | string | Additional data attached to the control. The value is passed in change event data along with a ChoiceGroup selected value. |
#
EventsName | Description |
---|---|
change | Fires when the choice has been changed. |
#
Child controlsOption
control#
Option
represents an item within ChoiceGroup.
Name | Type | Default | Description |
---|---|---|---|
key | string | Option's key. text value will be used instead if key is not specified. | |
text | string | Option's display text. key value will be used instead if text is not specified. | |
icon | string | Icon name to display with this option. | |
iconColor | string | Icon color. |
#
Examples- Python
- Bash
- PowerShell
- Node.js
Adding a new ChoiceGroup with a couple of options defined as tuples:
or as Option
controls:
Get the key of selected option: