AfterCollapse

fires after a shape has been collapsed

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

Parameters

idstring|numberthe id of a shape which has been collapsed

Example

diagram.events.on("AfterCollapse", function(id) {
    console.log(diagram.data.getItem(id).text + " was collapsed");
});

Related samples

See also
Back to top