Event fires before node collapse.
Parameters
Name | Type | Description |
---|---|---|
e | {object} | event data |
node | {object} | the node as jquery object |
id | {string} | the id of the record |
Examples
Event Sample
<div id="tree" data-source="/Locations/Get"></div>
<script>
var tree = $('#tree').tree();
tree.on('collapse', function (e, node, id) {
alert('collapse is fired.');
});
</script>