isFolder
Optional. Defines whether an item should be rendered as a folder
isFolder?: (obj: any) => boolean;
Example
const tree = new dhx.Tree("tree_container", {
isFolder: function() {
return true;
}
});
Related sample: Tree. Custom folders
The config option can be used to create custom folders in a tree.