SwitchComponent
Represents the Kendo UI Switch component for Angular.
Selector
kendo-switch
Export Name
Accessible in templates as #kendoSwitchInstance="kendoSwitch"
Inputs
Name | Type | Default | Description |
---|---|---|---|
checked |
|
Sets the value of the Switch when it is initially displayed. | |
disabled |
|
Determines whether the Switch is disabled (see example). To learn how to disable the component in reactive forms, refer to the article on Forms Support. | |
offLabel |
|
Sets the Off label (see example). Takes precedence over the custom messages component. | |
onLabel |
|
Sets the On label (see example). Takes precedence over the custom messages component. | |
readonly |
|
|
Determines whether the Switch is in its read-only state (see example). |
size |
|
Specifies the width and height of the Switch. The possible values are:
| |
tabindex |
|
Specifies the tabindex of the Switch. | |
thumbRounded |
|
Specifies the border radius of the Switch thumb. The possible values are:
| |
trackRounded |
|
Specifies the border radius of the Switch track. The possible values are:
|
Events
Name | Type | Description |
---|---|---|
blur |
|
Fires each time the Switch component is blurred as a result of user interaction. |
focus |
|
Fires each time the Switch component is focused as a result of user interaction. |
valueChange |
|
Fires each time the user selects a new value. |
Methods
blur |
---|
Blurs the Switch. |
focus |
---|
Focuses the Switch. ts
|