enable

Event fires on enable of tree node.

Parameters

NameTypeDescription
e {object} event data
node {object} the node as jquery object

Examples

Event Sample

    
 <button onclick="tree.enable(northAmerica, false)" class="gj-button-md">Enable North America</button>
 <button onclick="tree.disable(northAmerica, false)" class="gj-button-md">Disable North America</button>
 <br/><br/>
 <div id="tree" data-source="/Locations/Get"></div>
 <script>
     var tree, northAmerica;
     tree = $('#tree').tree({
         primaryKey: 'ID',
         dataBound: function () {
             northAmerica = tree.getNodeByText('North America');
         }
     });
     tree.on('enable', function (e, node) {
         alert(node.text() + ' is enabled.');
     });
 </script>