I am new this ivh tree, https://github.com/iVantage/angular-ivh-treeview
I have been successfully able to configure this library, however I am not able to get the list of selected nodes, is there a way to get list of selected nodes programmatically?
I am new this ivh tree, https://github.com/iVantage/angular-ivh-treeview
I have been successfully able to configure this library, however I am not able to get the list of selected nodes, is there a way to get list of selected nodes programmatically?
Copyright © 2021 Jogjafile Inc.
The easiest way is to use
ivhTreeviewBfsto collect selected nodes.Note that you can use
ivhTreeviewOptionsto get the appropriate "selected" attribute if you want to be fully generic. Also, folks will often want to only collect the top-most selected node for a given tree branch. In this case you can returnfalsein the callback passed toivhTreeviewBfsand that node's children will not be visited.You can read more about the bfs service here.