Sha256: 0f61013c94cb5ad77fabbdc51b6e51aa014f907a8ca05659ba76f88fa57d3b60

Contents?: true

Size: 571 Bytes

Versions: 7

Compression:

Stored size: 571 Bytes

Contents

---
title: updateNode
name: functions-updatenode
---

**function updateNode(node, label);**

**function updateNode(node, data);**

Update the title of a node. You can also update the data.

Update the label:

{% highlight js %}
var node = $tree.tree('getNodeById', 123);

$tree.tree('updateNode', node, 'new label');
{% endhighlight %}

Update the data (including the label)

{% highlight js %}
var node = $tree.tree('getNodeById', 123);

$tree.tree(
    'updateNode',
    node,
    {
        label: 'new label',
        other_property: 'abc'
    }
);
{% endhighlight %}

Version data entries

7 entries across 7 versions & 1 rubygems

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