isBranchOpen

checks whether the specified branch is open or closed

boolean isBranchOpen(idid);
ididthe node id
booleantrue, if the branch is opened, otherwise - false

Example

tree = webix.ui({
    view: "tree",
    data: [
        { id: "branch1", value: "The Shawshank Redemption", data: [
            { id: "1.1", value: "Part 1" },
            { id: "1.2", value: "Part 2" }
        ]},
        { id: "branch2", value: "The Godfather", data: [
            { id: "2.1", value: "Part 1" }
        ]}
    ]
}); 
 
tree.isBranchOpen("branch1");

See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
If you have not checked yet, be sure to visit site of our main product Webix javascript web framework and page of tree grid ui product.