From 53d1a513af2b6cfada74cb687b0a922e2170404a Mon Sep 17 00:00:00 2001 From: Proximate Date: Sun, 6 Oct 2024 14:37:32 +0200 Subject: [PATCH 1/2] Update radio.md Added Layout Radio Switcher information aswell as an exemple on how to use it on the bottom. Additionally Added JNo / JYes Option Labels for Styling with yes/no. --- .../forms-fields/standard-fields/radio.md | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) 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) From f28f88d4cc9f226d9eef97c85f39b75f2920c385 Mon Sep 17 00:00:00 2001 From: Harald Leithner Date: Fri, 18 Oct 2024 17:51:29 +0200 Subject: [PATCH 2/2] 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 + + + ```