Switch Tag Helper Overview

The Switch tag helper helps you configure the Kendo UI Switch widget in ASP.NET Core applications.

Basic Usage

The following example demonstrates how to define the Switch by using the Switch tag helper. It is used to display two exclusive choices.

Example
<kendo-switch name="switch"
        checked="true"></kendo-switch>

Configuration

The Switch tag helper configuration options are passed as attributes of the tag.

Example
    <kendo-switch name="switch"
            checked="true"
            enabled="true"></kendo-switch>
    @(Html.Kendo().Switch()
        .Name("switch")
        .Checked(true)
        .Enabled(true))

See Also

In this article
Not finding the help you need? Improve this article