Splitter Orientation

8 Jun 20172 minutes to read

Splitter supports both vertical and horizontal orientation of the pane. You can define 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
  • <ej-splitter id="outterSpliter" class="ang-splitter" height ="100%" width="485" [properties]="proper" enableAutoResize="true" [orientation]="orientation">					                
                <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 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.

    Define the splitter orientation as “ej.Orientation.Vertical” in constructor file.

  • export class AppComponent {
    	 constructor() {
    	  this.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,