I know I can use getAllChildless to get me all leaf nodes in a tree, but is it possible for a specific sub node to get the leaf nodes of that sub node?
e.g.
±A
±–B
±----C
±----D
±------E
±–F
±----G
If i said getNode(B).getChildless [<—I know this is made up code]
then it would return C & E, as it would check for nodes under node B that are childless, rather than checking the entire tree.
Hi
There is no ready approach, bu you can use method getAllSubItems() to get the hole brunch under this node and iterate all the nodes to use method getAllChildless() for them.
Sorry for misleading you…
I meant:
There is no ready approach, bu you can use method getAllSubItems() to get the hole brunch under this node and iterate all the nodes …
for the next: