getNextSiblingId

returns the ID of the next sibling of the specified node

id getNextSiblingId(id id);

Parameters

ididID of the node in question

Returns

idID of the next sibling or false if there isn't any

Example

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

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix js frameworks and page of javascript tree visualization product.