From ba422d6f7f59ce57e24bd030a670155717a6a226 Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Tue, 25 Mar 2025 13:16:53 +0100 Subject: [PATCH] chore: update doc --- source/components/form/toggle-switch.mjs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/source/components/form/toggle-switch.mjs b/source/components/form/toggle-switch.mjs index 19118e25..7839a13b 100644 --- a/source/components/form/toggle-switch.mjs +++ b/source/components/form/toggle-switch.mjs @@ -74,18 +74,18 @@ class ToggleSwitch extends CustomControl { * The individual configuration values can be found in the table. * * @property {string} value=current value of the element - * @property {Boolean} disabled=disabled=false Disabled state + * @property {Boolean} disabled Disabled state * @property {Object} classes - * @property {string} classes.on=specifies the class for the on state. - * @property {string} classes.off=specifies the class for the off state. + * @property {string} classes.on specifies the class for the on state. + * @property {string} classes.off specifies the class for the off state. * @property {Object} values - * @property {string} values.off=specifies the value of the element if it is not selected + * @property {string} values.off specifies the value of the element if it is not selected * @property {Object} labels - * @property {string} labels.on=specifies the label for the on state. - * @property {string} labels.off=specifies the label for the off state. + * @property {string} labels.on specifies the label for the on state. + * @property {string} labels.off specifies the label for the off state. * @property {string} actions - * @property {string} actions.on=specifies the action for the on state. - * @property {string} actions.off=specifies the action for the off state. + * @property {string} actions.on specifies the action for the on state. + * @property {string} actions.off specifies the action for the off state. * @property {Object} templates * @property {string} templates.main the main template used by the control. */ @@ -104,8 +104,8 @@ class ToggleSwitch extends CustomControl { off: "off", }, labels: { - toggleSwitchOn: "✔", - toggleSwitchOff: "✖", + toggleSwitchOn: "✔��", + toggleSwitchOff: "×", }, templates: { main: getTemplate(), -- GitLab