rootId
Optional. Sets the id for the root element
rootId?: string | number;
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