RadioΒΆ

/libs/granite/ui/components/foundation/form/radio

A radio component.

It extends Field component.

It has the following content structure:

granite:FormRadio
idstring

The id attribute.

relstring

The class attribute. This is used to indicate the semantic relationship of the component similar to rel attribute.

classstring

The class attribute.

titlestring
i18n

The title attribute.

namestring

The name that identifies the field when submitting the form.

deleteHintboolean
  1. true

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

valuestring

The value of the field.

disabledboolean

Indicates if the field is in disabled state.

checkedboolean

Indicates if the radio is checked. Providing checked property (either true or false) will imply ignoreData to be true.

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 is based on checked property specified. For radios in a radio group ignoreData must be set on the group.

textstring
i18n

The text of the radio.