Constructor
new SplitView(text})
Creates an instance of SplitView component.
| Name | Type | Description |
|---|---|---|
text} | string | Optional text property for the component. When adding this component to Tabs this text would be used as a Tab text. |
Classes
Members
(readonly) panelSizes :Array.<{width:number, height:number}>
Returns an array of current sizes of both child components as an array of objects {width:number, height:number}.
- Array.<{width:number, height:number}>
Methods
dividerPosition(positionopt) → {number|SplitView}
Sets of gets the position of the divider (from top or left depends on orientation).
| Name | Type | Attributes | Description |
|---|---|---|---|
position | number | <optional> | Position of the divider. |
If called without parameters, returns current value; otherwise returns this SplitView component for chaining.
- Type:
- number |
SplitView
dividerSize(sizeopt) → {number|SplitView}
Sets of gets the thickness of the divider.
| Name | Type | Attributes | Description |
|---|---|---|---|
size | number | <optional> | Thickness of the divider in pixels. |
If called without parameters, returns current value; otherwise returns this SplitView component for chaining.
- Type:
- number |
SplitView
orientation(orientationopt) → {number|SplitView}
Sets or gets an orientation of divider.
| Name | Type | Attributes | Description |
|---|---|---|---|
orientation | Orientation | <optional> | One of the value: Orientation.Horizontal, Orientation.Vertical |
- See
If called without parameters, returns current value; otherwise returns this SplitView component for chaining.
- Type:
- number |
SplitView