AfterExpand

fires after a shape has been expanded

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

Parameters

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

Example

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

Related samples

See also
Change log

The dir parameter was added in v3.1.

Back to top