Set disabled state

17 Feb 20221 minute to read

Switch can be disabled by setting the disabled property to true.

The following example illustrates how to disable support in Switch component.

@Html.EJS().Switch("default").Disabled(true).Render()
public ActionResult Default()
{
    return View();
}