Initial OpenECOMP Portal commit
[portal.git] / ecomp-portal-FE / client / bower_components / jqTree / _entries / 55_selectnode.md
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 (file)
index 0000000..a3ab45e
--- /dev/null
@@ -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 %}