diff options
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/jqTree/_entries/41_getnodebycallback.md')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/jqTree/_entries/41_getnodebycallback.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/41_getnodebycallback.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/41_getnodebycallback.md new file mode 100644 index 00000000..e6519192 --- /dev/null +++ b/ecomp-portal-FE/client/bower_components/jqTree/_entries/41_getnodebycallback.md @@ -0,0 +1,24 @@ +--- +title: getNodeByCallback +name: functions-getnodebycallback +--- + +**function getNodeByCallback(callback);** + +Get a tree node using a callback. The callback should return true if the node is found. + +{% highlight js %} +var node = $('#tree1').tree( + 'getNodeByCallback', + function(node) { + if (node.name == 'abc') { + // Node is found; return true + return true; + } + else { + // Node not found; continue searching + return false; + } + } +); +{% endhighlight %} |