Toggle
Examples
Basic
Custom label
Disabled
Checked
Indeterminate
API
Properties
Name
Description and specifications
checked
Whether the slide-toggle element is checked or not.
Attribute:
checkedType:
booleanDefault:
falsedisabled
Whether the slide-toggle element is disabled or not.
Attribute:
disabledType:
booleanDefault:
falsehideText
Hide `on` and `off` text
Attribute:
hide-textType:
booleanDefault:
falseindeterminate
If true the control is in indeterminate state
Attribute:
indeterminateType:
booleanDefault:
falsename
Name of the checkbox component
Attribute:
nameType:
string | undefinedrequired
Required state of the checkbox component.
If true, checkbox needs to be checked to be valid
Attribute:
requiredType:
booleanDefault:
falsetextIndeterminate
Text for indeterminate state
Attribute:
text-indeterminateType:
stringDefault:
'Mixed'textOff
Text for off state
Attribute:
text-offType:
stringDefault:
'Off'textOn
Text for on state
Attribute:
text-onType:
stringDefault:
'On'value
Value of the checkbox component
Attribute:
valueType:
stringDefault:
'on'Events
Name
Description and specifications
checkedChange
An event will be dispatched each time the slide-toggle changes its value.
Detail:
boolean