Splitter Orientation

28 Jun 20171 minute to read

Splitter supports both vertical and horizontal orientation of the pane. You can define e-orientation with enum values “ej.Orientation.Vertical“ or “ej.Orientation.Horizontal”. Or else set value of orientation as string.

Configure Splitter Orientation

The following steps explain the implementation of Splitter orientation option.

In the HTML page set the <div> element for rendering Splitter component.

  • HTML
  • <div id="splitter" ej-splitter e-properties="proper" e-orientation="orientation" e-height="280" e-width="600">
        <div>
            <div style="padding: 0px 15px;">
                <h3 class="h3">Tools </h3>
                Essential Tools is an collection of user interface components used to create interactive JavaScript applications.
            </div>
        </div>
        <div>
            <div style="padding: 0px 15px;">
                <h3 class="h3">Grid </h3>
                Essential JavaScript Grid offers full featured a Grid control with extensive support for Grouping and the display of hierarchical data.
            </div>
        </div>
        </div>

    Define the splitter orientation as “ej.Orientation.Vertical” in angular module in script.

  • JAVASCRIPT
  • angular.module('syncApp', ['ejangular'])
               .controller('SplitterCtrl', function ($scope) {  
                 $scope.orientation=ej.Orientation.Vertical;
        })

    The output of Splitter with ej.Orientation.Vertical orientation as follows,

    The output of Splitter with ej.Orientation.Horizontal orientation as follows,