Search results

Set disabled state in ASP.NET Core Toggle Switch Button control

30 Jul 2021 / 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.

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