From f28f88d4cc9f226d9eef97c85f39b75f2920c385 Mon Sep 17 00:00:00 2001 From: Harald Leithner Date: Fri, 18 Oct 2024 17:51:29 +0200 Subject: [PATCH] Sync with 5.2 --- .../forms-fields/standard-fields/radio.md | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) 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 + + + ```