I am trying to implement ajax search in jsTree, but only inside one of the root node.
I read the docs and found some information about:
$ .jstree.defaults.search.ajax
The str parameter (which is the search string) will be added with the request, an additional internal parameter will be added if the search is limited by the node identifier.
My SEARCH AJAX config:
"search": {
"show_only_matches": true,
'ajax': {
'url': "/ajax/root-nodes"
}
},
jsSearch call:
$tree.jstree(true).search(searchText);
I also use lazy subnode loading.
Does anyone do something like this?
source
share