diff options
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/jqTree/_entries/55_selectnode.md')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/jqTree/_entries/55_selectnode.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/55_selectnode.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/55_selectnode.md new file mode 100644 index 00000000..a3ab45e7 --- /dev/null +++ b/ecomp-portal-FE/client/bower_components/jqTree/_entries/55_selectnode.md @@ -0,0 +1,24 @@ +--- +title: selectNode +name: functions-selectnode +--- + +**function selectNode(node);** + +**function selectNode(null);** + +Select this node. + +You can deselect the current node by calling **selectNode(null)**. + +{% highlight js %} +// create tree +var $tree = $('#tree1'); +$tree.tree({ + data: data, + selectable: true +}); + +var node = $tree.tree('getNodeById', 123); +$tree.tree('selectNode', node); +{% endhighlight %} |