Home > Element Reference : Splitter

Contents

### Splitter

An element which should appear before or after an element inside a container. When the splitter is dragged, the sibling elements of the splitter are resized. When the grippy on the splitter is clicked, one sibling element of the splitter is collapsed.

More information about Splitter

#### Attributes:

Attributes inherited from XUL Element

collapse

Determines which side of the splitter is collapsed when its grippy is clicked. If this attribute is not specified, the splitter will not cause a collapse.

- none: No collpasing occurs.
- before: When the grippy is clicked, the element before the splitter in the same parent is collapsed so that its width or height is 0.
- after: When the grippy is clicked, the element after the splitter in the same parent is collapsed so that its width or height is 0.

resizeafter

This attribute indicates which element to the right or below the splitter should be resized when the splitter is repositioned.

- closest: The element immediately to the right or below the splitter resizes.
- farthest: The element that is the farthest away from the splitter to the right or below the splitter resizes.
- grow: The elements to the right of the splitter do not change size when the splitter is dragged, but instead the entire container changes size.

resizebefore

This attribute indicates which element to the left or above the splitter should be resized when the splitter is repositioned.

- closest: The element immediately to the left or above the splitter resizes.
- farthest: The element that is the farthest away from the splitter to the left or above the splitter resizes.

#### Properties and Methods:

Properties and Methods inherited from XUL Element

Copyright (C) 1999 - 2002 XULPlanet.com