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

Search bar

Open Julan76 opened this issue 8 years ago • 5 comments

Hello, How can I implement a search bar(input) in order to filter on nodes matching with input text? I have tried this : <treecontrol class="tree-classic" tree-model="Tab" options="treeOptions" on-selection="showSelected(node)" selected-node="node1" filter-expression="predicate" filter-comparator="comparator"> {{node.menuName}} <span class="badge text-center" > {{node.children.length}}</span> </treecontrol> and for input : <input autofocus focus-me="true" type="text" data-ng-model="comparator" class="form-control" placeholder="Search..." />

Then, is it possible to open nodes directly when filtering instead of clicking on ? ` Thank you

Julan76 avatar Jan 02 '17 16:01 Julan76

I have found filtering :) But how about opening nodes directly while filtering ?

Julan76 avatar Jan 02 '17 16:01 Julan76

Hello, How can I use expanded nodes function to expand all nodes of a tree ?

Julan76 avatar Jan 06 '17 10:01 Julan76

http://wix.github.io/angular-tree-control/#expandedNodes just set the expanded-nodes to whatever you wanna be expanded

yoavaa avatar Jan 08 '17 07:01 yoavaa

@yoavaa Is there any function/model that holds filtered nodes that I can use with expanded-nodes functionality?

indusbull avatar May 12 '17 16:05 indusbull

@yoavaa Do you have code example for this? Also, is it possible to keep the all tree nodes and only highlight the search result?

weiWork avatar Nov 08 '17 16:11 weiWork