Radio Group
JSON structure example
"viewDefinition": {
"children": {
"radioGroupComponent": {
"type": "radio-group",
"id": "radioGroupId",
"disabled": false,
"size": "default",
"name": "radioGroupName",
"header": "radioGroupHeader",
"inline": false,
"displayField": "{invoiceNumber}",
"valueField": "{id}",
"resource": "radioGroupdata",
"options": "{optionsFieldTemplate}"
}
}
}
type
(String) - the type attribute for a Radio Groupid
(String) - an id for the componentdisabled
(Boolean) - set to true in order to disable the component- Default:
false
- Default:
size
(String) (Optional) - defines the size of the component, choose from:- Allowed values: {
default
,small
} - Default:
default
name
(String) - Name for componentheader
(String) - Header of the Radio Groupinline
(Boolean) - Align buttons horizontallyvalueField
(String) - a template that defines the field to use for the value representing the option.displayField
(String) - a template that defines the field to use for the text of the options.resource
(String) - resource used by the RadioGroup component.
Do's and Don'ts
For more details, refer to Radio Group Usage and Visual styleguides in our Storybook