angular-tree-control icon indicating copy to clipboard operation
angular-tree-control copied to clipboard

Suggestion: Expand nodes to show matching nodes when filter is applied

Open erslater opened this issue 11 years ago • 4 comments

Right now if I type a filter in it hides some nodes but I have to dig down into different branches to find matches which is time consuming. It would be nice if the nodes were automatically expanded to show the matches. If not as a default then as an option.

erslater avatar Mar 20 '15 19:03 erslater

It already has the capability, you just have to do it yourself: wix.github.io/angular-tree-control/#expandedNodes

dailytabs avatar Jul 20 '15 20:07 dailytabs

Is there a way to fill the $scope.expandedNodes automatically after filter, without having to manualy give all the possible nodes.

marioshtika avatar Nov 04 '15 10:11 marioshtika

Anyone ever find the optimal way of automatically expanding nodes to show the matched filter result

search term: test

Current Result Folder 1

Desired

Folder 1
   test.js

Wanted to see the generally accepted approach..

afreeland avatar Apr 05 '16 17:04 afreeland

@dailytabs can you provide an example of how to use expandedNodes option? I have been struggling since last couple of days to set expandedNodes on filtered items?

indusbull avatar May 12 '17 16:05 indusbull