Import
import { NuiSplitter, NuiSplitterHandle, NuiSplitterPane } from '@needless-ui/angular/splitter';NuiSplitter
Panes with handles between them.
| Name | Type | Default | Description |
|---|---|---|---|
orientationInput | 'horizontal' | 'vertical' | 'horizontal' | Side by side, or stacked. |
sizesTwo-way | number[] | shared evenly | Each pane’s share, in percent, in order. |
storageKeyInput | string | Keeps the sizes in localStorage under this key. | |
stepInput | number | 5 | How far the arrow keys move a handle, in percent. Twice as far with Shift. |
moveMethod | (index: number, delta: number) => void | Moves the boundary after a pane by a percentage. |
NuiSplitterPane
A pane. Its sizes take pixels, rems or percent.
| Name | Type | Default | Description |
|---|---|---|---|
defaultSizeInput | string | number (e.g. '240px', '30%') | Its size at first, when there are no sizes to restore. | |
minInput | string | number | 0 | Its smallest size. |
maxInput | string | number | '100%' | Its largest size. |
collapsibleInput | boolean | false | It folds away: dragged below half its minimum, or with Enter. |
collapsedSizeInput | string | number | 0 | Its size folded, such as a rail of icons. |
labelInput | string | Names the handle that resizes it. |
NuiSplitterHandle
The handle between two panes.
| Name | Type | Default | Description |
|---|---|---|---|
labelInput | string | the pane's label | Names it, when the pane’s label doesn’t. |
disabledInput | boolean | false | It doesn’t move. |
toggleMethod | () => void | Folds the pane beside it, or brings it back. |