iterates through the leaves (items with no sub-items) of the specified branch
pid | string | the parent (branch) id |
code | function | a function that needs calling for each data item |
tree.data.eachLeaf("1.2",function(obj){ console.log(obj.id)});
Back to top