Switch

Example

Razor
<kendo-switch>
    <messages />
</kendo-switch>

ChildTags

Tag NameDetails
messagesSwitchMessagesSettingsTagHelper

Attributes

AttributeTypeDescription
nameStringSets the name of the component.
checkedBooleanThe checked state of the Switch.
enabledBooleanIf set to false, the Switch will be disabled and will not allow the user to change its checked state.
forModelExpressionAn expression to be evaluated against the current model.
on-changeStringFires when the checked state of the Switch is changed through user interaction.
readonlyBooleanIf set to true, the Switch will render into its read-only state.
script-attributesIDictionary<String,Object>
sizeComponentSizeSets the size of the component.
thumb-roundedRoundedSets a value controlling the thumb's border radius.
track-roundedRoundedSets a value controlling the track's border radius.
widthDoubleThe width of the Switch.
is-in-client-templateBooleanWhen placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute.
deferredBooleanSuppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
as-moduleBoolean
has-client-componentBoolean
sanitize-idBoolean
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support