Switch Tag Helper Overview

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

The Switch displays two exclusive choices.

Basic Usage

The following example demonstrates how to define the Switch by using the Switch tag helper.

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

Configuration

The configuration options of the Switch tag helper 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