3 name: functions-updatenode
6 **function updateNode(node, name);**
8 **function updateNode(node, data);**
10 Update the title of a node. You can also update the data.
15 var node = $tree.tree('getNodeById', 123);
17 $tree.tree('updateNode', node, 'new name');
20 Update the data (including the name)
23 var node = $tree.tree('getNodeById', 123);
36 It is also possible to update the children. Note that this removes the existing children:
46 { name: 'child1', id: 2 }