destroying

Event fires before tree destroy

Parameters

NameTypeDescription
e {object} event data

Examples

Event Sample

    
 <button onclick="tree.destroy()" class="gj-button-md">Destroy</button>
 <br/><br/>
 <div id="tree" data-source="/Locations/Get"></div>
 <script>
     var tree = $('#tree').tree();
     tree.on('destroying', function (e) {
         alert('destroying is fired.');
     });
 </script>