Sha256: f2c532fca6111037e6f29bd1d89c3e06ae5fe6d1edc9f186fdebd3d849873059
Contents?: true
Size: 579 Bytes
Versions: 7
Compression:
Stored size: 579 Bytes
Contents
--- title: appendNode name: functions-appendnode --- **function appendNode(new_node_info, parent_node);** Add a node to this parent node. If **parent_node<** is empty, then the new node becomes a root node. {% highlight js %} var parent_node = $tree.tree('getNodeById', 123); $tree.tree( 'appendNode', { label: 'new_node', id: 456 }, parent_node ); {% endhighlight %} To add a root node, leave *parent_node* empty: {% highlight js %} $tree.tree( 'appendNode', { label: 'new_node', id: 456 } ); {% endhighlight %}
Version data entries
7 entries across 7 versions & 1 rubygems