Code Review
/
portal.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
nexus site path corrected
[portal.git]
/
ecomp-portal-FE
/
client
/
bower_components
/
jqTree
/
_entries
/
36a_addparentnode.md
1
---
2
title: addParentNode
3
name: functions-addparentnode
4
---
5
6
**function addParentNode(new_node_info, existing_node);**
7
8
Add a new node as parent of this existing node.
9
10
{% highlight js %}
11
var node1 = $('#tree1', 'getNodeByName', 'node1');
12
$('#tree1').tree(
13
'addParentNode',
14
{
15
name: 'new_parent',
16
id: 456
17
},
18
node1
19
);
20
{% endhighlight %}