Es5 globalization in EJ2 JavaScript Splitter control

8 May 20232 minutes to read


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.

// Initialize Splitter control
var splitObj = new ej.layouts.Splitter({
    paneSettings: [
        { content: 'Left Pane' },
        { content: 'Middle Pane' },
        { content: 'Right Pane' }
    enableRtl : true,
    height: '250px'
<!DOCTYPE html><html lang="en"><head>
    <title>Essential JS 2 Splitter </title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Essential JS 2 Uploader Component">
    <meta name="author" content="Syncfusion">
    <link href="index.css" rel="stylesheet">
    <link href="" rel="stylesheet">
    <link href="" rel="stylesheet">
    <link href="" rel="stylesheet">
<script src="" type="text/javascript"></script>
<script src="" type ="text/javascript"></script>

    <div id="container">
        <!--element which is going to render the splitter-->
        <div id="splitter">

var ele = document.getElementById('container');
if(ele) { = "visible";
<script src="index.js" type="text/javascript"></script>

See Also