SwitchProps
Represents the props of the Kendo UI for Vue Switch component.
Name | Type | Default | Description |
---|---|---|---|
accessKey? |
| Specifies the | |
ariaDescribedBy? |
| Identifies the element(s) which will describe the component, similar to HTML aria-describedby attribute. For example these elements could contain error or hint message. | |
ariaLabelledBy? |
| Identifies the element(s) which will label the component. | |
checked? |
| Sets the current value of the Switch (see example). | |
className? |
| Sets the | |
defaultChecked? |
| Sets the value of the Switch when it is initially displayed (see example). | |
defaultValue? |
| Sets the default value of the Switch. | |
dir? |
| Sets the | |
disabled? |
| Disables the Switch when set to | |
id? |
| Sets the | |
modelValue? |
| ||
name? |
| Specifies the | |
offLabel? |
| Changes the Off label(see example). | |
onLabel? |
| Changes the On label (see example). | |
required? |
| Specifies if | |
size? |
|
| Configures the The available options are:
|
tabIndex? |
| Specifies the | |
thumbRounded? |
|
| Configures the The available options are:
|
trackRounded? |
|
| Configures the The available options are:
|
valid? |
| Overrides the validity state of the component.
If | |
validationMessage? |
| Controls the form error message of the component. If set to an empty string, no error will be thrown. | |
validityStyles? |
| If set to | |
value? |
| Sets the value of the Switch. It can either be of the primitive (string, number, boolean) or of the complex (array) type. |
Methods
onBlur | ||||||
---|---|---|---|---|---|---|
Fires each time the Switch gets blurred. | ||||||
|
onChange | ||||||
---|---|---|---|---|---|---|
Fires each time the user selects a new value (see example). | ||||||
|
onFocus | ||||||
---|---|---|---|---|---|---|
Fires each time the Switch component gets focused. | ||||||
|