beforeCollapse

fires before collapsing a tree item

boolean beforeCollapse(string id){ ... };

Parameters

idstringthe id of a collapsed item

Returns

booleanfalse - to block collapsing a tree item, otherwise true

Example

tree.events.on("BeforeCollapse", function(id) {
    // your logic here
    return false;
});

Related samples

See also
Change log

added in v6.4

Back to top