Split

Overview

The Split class can be used to store multiple views horizontally or vertically with a seperator that can be moved between the two to resize one view or another. This class is useful for having a "tools" view on one side and a "content" view on the other allowing the user the option to collapse or resize one view as needed.

Ancestors

  1. Control
  2. Container
 

Descendants

  1. None
 

See Also

  1. None

Constructors

new Split
Description

Creates a new split view

Definition

new Split()

Members

orientation
Description

Gets or sets the orientation of all the seperators in the view, the values can be either "vertical" or "horizontal". The default is "horizontal".

Definition

string split.orientation (default "horizontal")
style
Description

Gets or sets the style or size of the seperators, the values can be "thick", "thin" or "pane". The actual size is determined by the native widget styles and recommended operating system standards. The default is "thin".

Definition

string split.style (default "thin")

Methods

appendChild(The)
Description

appendChild adds a new control to the split control with a seperator between the previous and appended control.

Definition

split.appendChild(The)
Parameters
NameTypeDescription
The control control to append to the split control.
removeChild(The)
Description

Removes a control from the split control.

Definition

split.removeChild(The)
Parameters
NameTypeDescription
The control control to remove from the split control.
setPosition(position, index)
Description

Sets the position (a value of 0 to 1) of a seperator identified by the index.

Definition

split.setPosition(position, index)
Parameters
NameTypeDescription
position number The position of the seperator, a value of 0 to 1 representing the percentage of available area it should be at, for example two views are sharing 50% of the possible area if the position is set to 0.5.
index number The index identifying the seperator to position.