RadioGroupΒΆ

/libs/granite/ui/components/coral/foundation/form/radiogroup

A container to group a set of radios.

It extends Field component.

It has the following content structure:

granite:FormRadioGroup
  1. granite:FormField
  2. granite:container
namestring

The name that identifies each radio when submitting the form.

deleteHintboolean
  1. true

true to generate the SlingPostServlet @Delete hidden input based on the name.

requiredboolean

Indicates if the field is mandatory to be filled.

validationstring
multiple

The name of the validator to be applied. E.g. foundation.jcr.name. See validation in Granite UI.

ignoreDataboolean

If false, the checked status is based on matching the form values by name and value properties. Otherwise, the form values are not matched, and the checked status of each item is based on its checked property.

verticalboolean

true to list the radios vertically; false otherwise.

Each item has the following content structure:

granite:FormRadioGroupItem
  1. granite:commonAttrs
valuestring

The value of the field.

fieldDescriptionstring
i18n

The description of the component.

disabledboolean

Indicates if the field is in disabled state.

checkedboolean

true to pre-check this item, false otherwise.

textstring
i18n

The text of the radio.

wrapperClassstring

The class for the wrapper element.