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

Get all tree above a certain node #6

Open maeishoj opened 9 years ago

maeishoj commented 9 years ago

Hi there,

I am using ui-tree for managing groups in my project and I have a full tree of a group on one side, and i can select various nodes and then add them to a new list. However I am looking for a way to only add a the selected nodes and all the other ones above the last selected node in the hierarchy.

so say i have this:

Company name

and I select Board of Directors and Financial department, I want to have in a new ui-tree

Company name

Is there an easy way to do this? how would you guys go about it?

Right now I am only copying the whole structure over and showing in bold the selected groups and disabling the unselected ones.