Radio
Property | Description | Type | Required |
---|---|---|---|
value | Will be used as default value. | String | Yes |
options | An array of objects representing each radio input. Each should have a (String) label and a (String) value | Array | Yes |
And all the common properties for all components.
Example:
{
category: 'conditions',
propName: 'content',
label: 'Happy?',
type: 'radio',
value: 'yes',
options: [
{ label: 'Yes', 'value': 'yes' },
{ label: 'No', 'value': 'no' },
{ label: 'Maybe', 'value': 'maybe' },
],
}