Import

import-splitter.ts
import { NuiSplitter, NuiSplitterHandle, NuiSplitterPane } from '@needless-ui/angular/splitter';

NuiSplitter

Panes with handles between them.

Selector
[nuiSplitter]
NuiSplitter: Properties
NameTypeDefaultDescription
orientationInput'horizontal' | 'vertical''horizontal'Side by side, or stacked.
sizesTwo-waynumber[]shared evenlyEach pane’s share, in percent, in order.
storageKeyInputstringKeeps the sizes in localStorage under this key.
stepInputnumber5How far the arrow keys move a handle, in percent. Twice as far with Shift.
moveMethod(index: number, delta: number) => voidMoves the boundary after a pane by a percentage.

NuiSplitterPane

A pane. Its sizes take pixels, rems or percent.

Selector
[nuiSplitterPane]
NuiSplitterPane: Properties
NameTypeDefaultDescription
defaultSizeInputstring | number (e.g. '240px', '30%')Its size at first, when there are no sizes to restore.
minInputstring | number0Its smallest size.
maxInputstring | number'100%'Its largest size.
collapsibleInputbooleanfalseIt folds away: dragged below half its minimum, or with Enter.
collapsedSizeInputstring | number0Its size folded, such as a rail of icons.
labelInputstringNames the handle that resizes it.

NuiSplitterHandle

The handle between two panes.

Selector
[nuiSplitterHandle]
NuiSplitterHandle: Properties
NameTypeDefaultDescription
labelInputstringthe pane's labelNames it, when the pane’s label doesn’t.
disabledInputbooleanfalseIt doesn’t move.
toggleMethod() => voidFolds the pane beside it, or brings it back.