beforeExpand

fires before expanding a tree item

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

Parameters

idstringthe id of an expanded item

Returns

booleanfalse - to block expanding a tree item, otherwise true

Example

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

Related samples

See also
Change log

added in v6.4

Back to top