Skip to main content

Home > @jsplumbtoolkit/layout-hierarchical > AbstractHierarchicalLayoutParameters > multipleRoots

AbstractHierarchicalLayoutParameters.multipleRoots property#

Optional, defaults to true. If false, multiple roots are not supported, and assuming you have not overridden getRootNode, the layout uses the first node found in the dataset (otherwise it still uses the result of your getRootNode function)

Signature:

multipleRoots?: boolean;