enforceMinChildren
enforceMinChildren(
node):void
Defined in: filtering/tree/filter-tree.service.ts:283
Recursively enforce the >=2-children invariant on all NON-ROOT branches.
Applied bottom-up (deepest first) so that flattening propagates upward: hoisting a grandchild may cause the parent to also drop to 1 child, which the next level up will then catch.
Empty non-root branches are also removed (can occur when both children of a branch are deleted or dragged out).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void