getNextSiblingId

returns the ID of the next sibling of the specified node

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

Example

tree = 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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.