In my current project I use ngjstree.
How can I attach a <input type"search">
to jstree in Angularjs to have a live search?
view
<input type"search">
<div id="js-tree" js-tree="treeConfig" ng-model="tags"></div>
controller
$scope.treeConfig = {
"plugins": ["checkbox", "search"],
"core": {
"check_callback": true,
"multiple": false,
}
};
$scope.data = [
{
'id': 1,
'text': 'node 1'
},
{
'id': 2,
'text': 'node 2'
}
I Solved the problem.
HTML
JS