Closed esinek closed 8 years ago
you can do that using the isLeaf function http://wix.github.io/angular-tree-control/#isleaf
On Thu, Apr 28, 2016 at 7:48 PM, esinek notifications@github.com wrote:
Is there a mechanism to load the data async where the data contains something like "hasChildren" or "childCount" so we can set the appropriate icon (turndown or leaf icon), and then if the user expands that node, we get the next level async (send expanded node id)?
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/wix/angular-tree-control/issues/213
I also tried lazy load using isLeaf
and on-node-toggle
.
https://gist.github.com/tyru/96a6afd47314f271c4b8695e1419c698
P.S. Thanks for inventing a great component :)
Is there a mechanism to load the data async where the data contains something like "hasChildren" or "childCount" so we can set the appropriate icon (turndown or leaf icon), and then if the user expands that node, we get the next level async (send expanded node id)?