Toggle - Code
Basic
Custom label
Disabled
Checked
Indeterminate
API for ix-toggle
Properties
Description
Whether the slide-toggle element is checked or not.
Attribute
checkedType
booleanDefault
falseDescription
Whether the slide-toggle element is disabled or not.
Attribute
disabledType
booleanDefault
falseDescription
Hide on and off text
Attribute
hide-textType
booleanDefault
falseDescription
If true the control is in indeterminate state
Attribute
indeterminateType
booleanDefault
falseDescription
Name of the checkbox component
Attribute
nameType
string | undefinedDescription
Required state of the checkbox component.
If true, checkbox needs to be checked to be valid
Attribute
requiredType
booleanDefault
falseDescription
Text for indeterminate state
Attribute
text-indeterminateType
stringDefault
'Mixed'Description
Text for off state
Attribute
text-offType
stringDefault
'Off'Description
Text for on state
Attribute
text-onType
stringDefault
'On'Description
Value of the checkbox component
Attribute
valueType
stringDefault
'on'Events
Description
An event will be dispatched each time the slide-toggle changes its value.
Event
checkedChangeDetail
booleanDescription
An event will be dispatched each time the toggle is blurred.
Event
ixBlurDetail
void