Right to Left in Button Control

19 Dec 20221 minute to read

Button 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 Button component.

@Html.EJS().Button("rtl").Content("Settings").IconCss("e-icons e-setting-icon").EnableRtl(true).Render()

<style>

button {
  margin: 25px 5px 20px 20px;
}

.e-setting-icon::before {
  content: '\e7cf';
}

</style>
public ActionResult rtl()
{
    return View();
}

Button with Right to Left view

NOTE

View Sample in GitHub.