collapseItem

hides all children of the target shape

void collapseItem(string|number id);

Parameters

idstring|numberthe id of the shape

Example

diagram.collapseItem(123);

Details

The method will work if the type:"org" property is specified in the configuration object of Diagram.

See also
Back to top