Sha256: a103ddb6712f60e93df9a4b566c0b90497deed7b4cc77846d31c14fdabdaf161

Contents?: true

Size: 367 Bytes

Versions: 7

Compression:

Stored size: 367 Bytes

Contents

---
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',
    {
        label: 'new_parent',
        id: 456
    },
    node1
);
{% endhighlight %}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
iqvoc-4.12.1 vendor/assets/bower_components/jqtree/_entries/46_addparentnode.md
iqvoc-4.12.0 vendor/assets/bower_components/jqtree/_entries/46_addparentnode.md
iqvoc-4.11.1 vendor/assets/bower_components/jqtree/_entries/46_addparentnode.md
iqvoc-4.11.0 vendor/assets/bower_components/jqtree/_entries/46_addparentnode.md
iqvoc-4.10.0 vendor/assets/bower_components/jqtree/_entries/46_addparentnode.md
iqvoc-4.9.0 vendor/assets/bower_components/jqtree/_entries/46_addparentnode.md
iqvoc-4.8.2 vendor/assets/bower_components/jqtree/_entries/46_addparentnode.md