Class: SplitBox

ui.SplitBox

new ui.SplitBox ()

Element representing a horizontal or vertical UI splitter with two child containers, one for each side.

Containers:

  • first - The first container.
  • second - The second container.
Properties:
Name Type Description
flip bool

(default: false) If true, the first and second containers are swapped.

orientation string

(default: horizontal) The orientation of the splitter. Either horizontal or vertical.

splitRatio number

(default: 0.5) The split ratio as a value between 0.0 and 1.0.

styleOfGutter template

The gutter style template.

Example
SplitBox {
    splitRatio: 0.3
    orientation: "vertical"

    into first Placeholder { text: "Left Side" }
    into second Placeholder { text: "Right Side" }
}

Extends