SwitchComponent
Represents the Kendo UI Switch component for Angular.
<kendo-switch [(ngModel)]="checked"></kendo-switch>`
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 first appears. | |
disabled |
|
|
When |
offLabel |
|
Set the Off label. This label takes precedence over the custom messages component. See example. | |
onLabel |
|
Set the On label. This label takes precedence over the custom messages component. See example. | |
readonly |
|
|
When |
size |
|
|
Sets the size of the Switch. |
tabindex |
|
|
Set the |
thumbRounded |
|
|
Sets the border radius of the Switch. |
trackRounded |
|
|
Sets the border radius of the Switch track. |
Events
Name | Type | Description |
---|---|---|
blur |
|
Fires when the user blurs the Switch. |
focus |
|
Fires when the user focuses the Switch. |
valueChange |
|
Fires when the value of the Switch changes. |
Methods
blur |
---|
Blurs the Switch. |
focus |
---|
Focuses the Switch. |