Search results

Set disabled state in ASP.NET Core Switch control

20 Jan 2022 / 1 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.

Copied to clipboard
<ejs-switch id="default" disabled="true"></ejs-switch>
Copied to clipboard
public ActionResult Default()
    return View();