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