returns the id of the previous sibling of the specified node

id getPrevSiblingId(id id);
ididID of the node in question
idID of the previous sibling or false if there isn't any


tree = webix.ui({
    data: [
        { id:"branch1", value:"The Shawshank Redemption", data:[
            { id:"part1", value:"Part 1" },
            { id:"part2", value:"Part 2" }
tree.getPrevSiblingId("part2"); // returns 'part1'

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix mvc library and page of treemap data visualization product.