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 + + + ``` diff --git a/versioned_docs/version-5.1/general-concepts/forms-fields/standard-fields/radio.md b/versioned_docs/version-5.1/general-concepts/forms-fields/standard-fields/radio.md index 55ce4912..9217c899 100644 --- a/versioned_docs/version-5.1/general-concepts/forms-fields/standard-fields/radio.md +++ b/versioned_docs/version-5.1/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 + + + ``` ## See also -* [List form field type](./list.md) \ No newline at end of file +* [List form field type](./list.md)