removeNodeReturns: jQuery object

Remove node from the tree.

Parameters

NameTypeDescription
node {object} The node as jQuery object

Examples

Method Sample

    
 <button onclick="remove()" class="gj-button-md">Remove USA</button>
 <br/>
 <div id="tree"></div>
 <script>
     var tree = $('#tree').tree({
         dataSource: '/Locations/Get'
     });
     function remove() {
         var node = tree.getNodeByText('USA');
         tree.removeNode(node);
     }
 </script>