Skip to main content

beforeExpand

fires before expanding a tree item

beforeExpand: (id: Id) => boolean | void;

Parameters:

id: string | number - the id of an expanded item

Returns:

Return false to block expanding a tree item; otherwise, true.

Example

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

Related sample: Tree. Events

Change log:

added in v6.4