Contents
- Collapsible panes
- See Also
Having trouble getting help?
Contact Support
Contact Support
Expand and Collapse
17 Feb 20221 minute to read
Collapsible panes
Specifies the direction of the Splitter component using the enableRtl property. For writing systems that require it like Arabic, Hebrew, etc., the direction can be switched to right-to-left.
The following code shows how to enable RTL behavior.
@Html.EJS().Splitter("splitter").EnableRtl(true).Width("500px").Height("200px").PaneSettings(item => {
item.Size("200px").Content("<div class='content'>Left pane</div>").Add();
item.Size("200px").Content("<div class='content'>Middle pane</div>").Add();
item.Size("200px").Content("<div class='content'>Right pane</div>").Add();
}).Render()
public class HomeController : Controller
{
public ActionResult Index()
{
return View();
}
}
Execution of above code’s output will be as given below,