BeforeExpand

fires before expanding a shape

void BeforeExpand(string|number id){ ... };

Parameters

idstring|numberthe id of a shape

Example

diagram.events.on("BeforeExpand", function(id) {
    console.log("Expanding " + diagram.data.getItem(id).text);
    return true;
});

Related samples

Details

Returning false from the handler will block the selection.

See also
Back to top