CheckboxGroup

Group of checkboxes.

Scenes to be used

  • When making multiple selections from a set of options.

  • Instead of the Select component, display options directly.

Example

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

Props

interface Option {
label: string
value: string
disabled?: boolean
}
type IProps = typeof Group & Component.PropsEditComponent & {}

API

PropertiesDescriptionTypeDefaultRequiredVersion
optionslist of optionsIProps['options']-no

For other properties, see Antd CheckboxGroup

CheckboxGroup

Group of checkboxes.

Scenes to be used

  • When making multiple selections from a set of options.

  • Instead of the Select component, display options directly.

Example

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

Props

interface Option {
label: string
value: string
disabled?: boolean
}
type IProps = typeof Group & Component.PropsEditComponent & {}

API

PropertiesDescriptionTypeDefaultRequiredVersion
optionslist of optionsIProps['options']-no

For other properties, see Antd CheckboxGroup