closeLeaf
closeLeaf(
root,id):SplitNode
Defined in: react/components/layout/split-view.tsx:324
Returns a new tree with the leaf id removed. The containing split drops the
pane (and its size weight); a split left with a single child collapses into
that child. Returns the tree unchanged if removing id would empty it.
Parameters
Section titled “Parameters”string