RadioGroup
This block displays a couple of radio buttons under a label. If set, they will be divided into several columns.
Example
{
type: "radioGroup",
name: "hasShoes",
label: "Hast du Wanderschuhe?",
columns: 2,
required: true,
options: [
{
label: "Ja",
value: "yes",
},
{
label: "Nein",
value: "no",
},
],
}
Reference
columns
How many colums the radio buttons should be divided in visually.
| Type | Required | Default |
|---|---|---|
| number | no | 1 |
options
Options which can be selected by the user.
| Type | Required | Default |
|---|---|---|
| array of options | yes | - |
Type Definitions
Option
An object that identifies the data to be rendered as a checkbox.
Properties
| Name | Type | Description |
|---|---|---|
| value | string or number | Value which will be stored / used within the form |
| label | string | Label which will be displayed in the form. |
| [checked] | boolean | Optionally, defines if checkbox is checked. |