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

Multilayer CSV to filtered excel -

Listboxes in c# -

ios - Why must I define variables twice in the Header file? -