angularjs - How to use ivhtree bread first search api -


i trying use ivhtreeviewbfs (https://github.com/ivantage/angular-ivh-treeview#ivhtreeviewbfstree-opts-cb)

ivhtreeviewbfs(mytree, function(node) {   console.log(node) }) 

however prints first level of nodes. how can traverse through entire list?

i facing same issue. after research , testing seems behavior occurs when override default attribute children via ivh-treeview-children-attribute.

the service doesn't detect children anymore (undefined), hence process first level.

this demo (forked @ua_boaz's link) illustrates issue.

i still trying figure out how fix it.

update: this issue reports similar problem. workaround set childrenattribute globally using ivhtreeviewoptionsprovider, demo here.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -