Is there a better way to get last SIBLING id or child count in webix Tree?

I know there is a getLastId(), but that only works for the top level. If I have a node that is 5 levels deep and I want to get its last sibling, is there a better way than just calling getNextSiblingId() repeatedly until null?

I’m also looking for a way to easily get the number of children a node has without using getNextSibling() calls. Do you guys plan on adding something like getChildCount(parentId)?

Thanks in advance.

it is possible to extend tree with required methods
https://snippet.webix.com/1c42vy2w

Thank you, I did not know about the this.data.branch function. :slight_smile: