Skip to content

splitLeaf

splitLeaf(root, id, direction, newLeaf): SplitNode

Defined in: react/components/layout/split-view.tsx:303

Returns a new tree where the leaf id is replaced by a split of [originalLeaf, newLeaf] along direction (equal sizes). Unchanged if the id isn’t found.

SplitNode

string

SplitDirection

SplitLeaf

SplitNode