Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Monster
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Javascript
Monster
Commits
ba422d6f
Verified
Commit
ba422d6f
authored
2 weeks ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
chore: update doc
parent
d8ef828f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/components/form/toggle-switch.mjs
+10
-10
10 additions, 10 deletions
source/components/form/toggle-switch.mjs
with
10 additions
and
10 deletions
source/components/form/toggle-switch.mjs
+
10
−
10
View file @
ba422d6f
...
...
@@ -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
(),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment