How to enable RTL in ASP.NET MVC Toggle Switch Button

21 Aug 20261 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.

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