isBranch

checks whether the node has any children

boolean isBranch(id id);

Parameters

ididID of the branch in question

Returns

booleantrue, if the branch has at least one child, false, if there are no children

Example

tree.isBranch('branch1');

Back to top
If you have not checked yet, be sure to visit site of our main product Webix web development library and page of javascript tree visualization product.