You can configure an option button in the box style.
Description
Field name | Element | Type | Required | Remarks |
---|
name | The name of the control. | string | Yes | No default value. |
type | Type | string | Yes | No default value. |
default | Default value | string | No | If this field is not specified, it is left empty. |
options | Options | array | No | The value is an object array, which consists of the label and value fields. The label field specifies the text to be displayed, and the value field specifies the value of the text. |
evenlySplit | Specifies whether the options are evenly distributed. | boolean | No | None. the evenlySplit field and the optionCol field are both configured, the former takes effect in priority. |
Values
Condition | Data type | Examples | Default value |
---|
None. | object | "left" | "" |
Sample configuration

"algin": {
"name": "Alignment",
"type": "buttonRadio",
"evenlySplit": true,
"options": [
{
"value": "left",
"label": "Left"
},
{
"value": "right",
"label": "Center"
},
{
"value": "bottom",
"label": "Right"
}
]
}