RadioGroup

Group of checkboxes.

Scenes to be used

  • When making a single choice among a set of mutually exclusive options.

  • The difference from Select is that all options of Radio are visible by default, which is convenient for users to choose in comparison, so the options should not be too many.

Example

{
"RadioGroup": {
"bind": "RadioGroup_value",
"edit": {
"type": "RadioGroup",
"props": {
"options": [
{
"label": "Apple",
"value": 1
},
{
"label": "Pear",
"value": 2
},
{
"label": "Orange",
"value": 3
}
]
}
}
}
}

Props

interface IProps extends RadioGroupProps, Component.PropsEditComponent {}

See Antd RadioGroup for other properties

RadioGroup

Group of checkboxes.

Scenes to be used

  • When making a single choice among a set of mutually exclusive options.

  • The difference from Select is that all options of Radio are visible by default, which is convenient for users to choose in comparison, so the options should not be too many.

Example

{
"RadioGroup": {
"bind": "RadioGroup_value",
"edit": {
"type": "RadioGroup",
"props": {
"options": [
{
"label": "Apple",
"value": 1
},
{
"label": "Pear",
"value": 2
},
{
"label": "Orange",
"value": 3
}
]
}
}
}
}

Props

interface IProps extends RadioGroupProps, Component.PropsEditComponent {}

See Antd RadioGroup for other properties