angular-tree-control
angular-tree-control copied to clipboard
Search bar
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
I have found filtering :) But how about opening nodes directly while filtering ?
Hello, How can I use expanded nodes function to expand all nodes of a tree ?
http://wix.github.io/angular-tree-control/#expandedNodes just set the expanded-nodes to whatever you wanna be expanded
@yoavaa Is there any function/model that holds filtered nodes that I can use with expanded-nodes functionality?
@yoavaa Do you have code example for this? Also, is it possible to keep the all tree nodes and only highlight the search result?