Button group
Button group field renders a set of buttons. It's a single-choice field, much like the Radio field. Can toggle the visibility of other fields. Supports initial checked
or disabled
attributes.
Example configuration
This will produce the following
It will use the label text as the value. If you wish to separate values from labels use the following syntax for the choices
key:
checked
and disabled
checked
and disabled
If checked
or disabled
keys are specified, they'll be respected. E.g:
will result in the following
Notice that the second option is checked on initial page load and the third option is not clickable.
Params
Name | Type | Description |
| string |
|
| string | Unique ID that will be used to retrieve the value (required) |
| string | Specifies in which tab this option will be rendered |
| string | Shows a heading to the left of the field |
| string | Shows a description text (can have HTML) |
| array | Kind of required, but will not render anything if no radio choices are provided. Can be an array of strings or an array of arrays with |
Last updated