diff options
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/jqTree/_entries/36a_addparentnode.md')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/jqTree/_entries/36a_addparentnode.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/36a_addparentnode.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/36a_addparentnode.md new file mode 100644 index 00000000..541af68c --- /dev/null +++ b/ecomp-portal-FE/client/bower_components/jqTree/_entries/36a_addparentnode.md @@ -0,0 +1,20 @@ +--- +title: addParentNode +name: functions-addparentnode +--- + +**function addParentNode(new_node_info, existing_node);** + +Add a new node as parent of this existing node. + +{% highlight js %} +var node1 = $('#tree1', 'getNodeByName', 'node1'); +$('#tree1').tree( + 'addParentNode', + { + name: 'new_parent', + id: 456 + }, + node1 +); +{% endhighlight %} |