EE / angular-ui-tree-filter

A module providing an AngularJS filter which can be used with angular-ui-tree to match tree nodes.
ee.github.io/angular-ui-tree-filter
MIT License
40 stars 21 forks source link

search only by child node's attribute, and show with his all parent node to root node. #8

Open raselahmedit09 opened 9 years ago

raselahmedit09 commented 9 years ago

Hi, I have collapsed tree. I want search only by child node's attribute, and show all match nodes with his parent node to root node.

Thanks ......

jrencz commented 9 years ago

@raselahmedit09 you can pass a list of properties that will be taken into consideration during filtering as described in the readme

If I understand you correctly then it's not currently possible to filter by a property of child node without taking parent nodes' properties into account. But you can add some property to the desired level of your tree, add it to configuration and if that property is not present in parent then parent won't be matched.

Expanding/collapsing the three is currently out of scope of this addon, but if you really need it you can try filing a PR