iVantage / angular-ivh-treeview

A treeview for AngularJS with filtering and checkbox support.
http://ivantage.github.io/angular-ivh-treeview/
MIT License
238 stars 89 forks source link

Get Selected Nodes Paths #216

Closed tziortziskyprianou closed 6 years ago

tziortziskyprianou commented 6 years ago

Does the package have a function to get the selected paths from source nodes?

jtrussell commented 6 years ago

Nope. However if you use the included BFS service to find a node it will give you a list of parent nodes: https://github.com/iVantage/angular-ivh-treeview#ivhtreeviewbfstree-opts-cb. I've also seen folks use the selection change callback to independently keep track of what's been selected/deselected.

We let end users change their tree structures dynamically and arbitrarily - with no restrictions on moving branches, adding nodes, etc. so keeping track of things like selected paths gets tricky.