Skip to main content

rootId

sets the id for the root element

rootId?: Id;

Example

const tree = new dhx.Tree("tree_container", {    rootId: "root"});

By default, the root element takes the id of a Tree container.

const tree = new dhx.Tree("tree_container");tree.data.getRoot() -> "tree_container"

Change log:

added in v7.0