AfterCollapse

fires after a shape has been collapsed

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

Parameters

idstring|numberthe id of a shape which has been collapsed
dirstringthe side the children were hidden in relation to the parent shape ("left", "right")

Example

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

Related samples

See also
Change log

The dir parameter was added in v3.1.

Back to top