Search results

Enable RTL in ASP.NET MVC Toggle Switch Button control

28 Jul 2021 / 1 minute to read

Switch component has RTL support. This can be achieved by setting enableRtl as true.

The following example illustrates how to enable right-to-left support in Switch component.

razor
default.cs
Copied to clipboard
@Html.EJS().Switch("default").EnableRtl(true).Render()
Copied to clipboard
public ActionResult Default()
    {
            return View();
    }