Right-To-Left
17 Feb 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();
}