diff --git a/docs/general-concepts/forms-fields/standard-fields/radio.md b/docs/general-concepts/forms-fields/standard-fields/radio.md index 55ce4912..b882ef53 100644 --- a/docs/general-concepts/forms-fields/standard-fields/radio.md +++ b/docs/general-concepts/forms-fields/standard-fields/radio.md @@ -11,6 +11,7 @@ The **radio** form field type provides radio buttons to select options. If the f - **description** (optional) (translatable) is the [field description](../standard-form-field-attributes.md#description). - **default** (optional) is the default password. - **class** (optional) is a CSS class name for the HTML form field. If set to `class="btn-group btn-group-yesno"` will show coloured buttons. +- **layout** (optional) can be used to set a Layout for the switcher. Eg. if set to `layout="joomla.form.field.radio.switcher"` will use the Joomla Radio-Switcher Layout. The XML `` element must include one or more `` tags is shown as the label for the radio button and is a translatable string. The ` - + + + +``` + +Styling with yes/no values as Switcher: + +```xml + + + ```