fires after an item has been expanded

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


idstring|numberthe id of an item which has been expanded
dirstringoptional, the side the children were shown in relation to the parent shape
("left" or "right" for type:"topic", otherwise - undefined)

Example"afterExpand", function(id, dir) {
    console.log( + " was expanded", dir);
// For editor"afterExpand", function(id,dir) {
    console.log( + " was expanded", dir);

Related samples

See also
Change log

The dir parameter was added in v3.1.

Back to top