Skip to main content

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

AbstractHierarchicalLayoutParameters.rootNode property

Optional. Defines the node/group to use as the root of the tree. This may be provided either as a node/group id or as a node/group object. If this parameter is not specified and multipleRoots is not false then the layout uses the result(s) of the getRootNode function; otherwise it uses the first node/group found in the dataset.

Signature:

rootNode?: Array<Vertex>;