collapseSubGraph method
This command collapses all expanded selected Groups. This operation is performed within a "Collapse SubGraph" transaction. Just before the end of the transaction this raises the "SubGraphCollapsed" DiagramEvent, with a collection of collapsed Groups as the subject. This currently has no default keyboard shortcut.
This calls Group#collapseSubGraph to perform the collapse, which will set Group#isSubGraphExpanded to false. You may want to save the collapsed/expanded state to the model by using a TwoWay Binding on the "isSubGraphExpanded" property of your Groups, and perhaps also on the Group#wasSubGraphExpanded property.
This method may be overridden, but you should consider calling this base method in order to get all of its functionality. Please read the Introduction page on Extensions for how to override methods and how to call this base method. @expose @param {Group=} group if supplied, ignore the selection and collapse this particular Group. @see #canCollapseSubGraph
Implementation
void collapseSubGraph([_i3.Group? group]) {
_i4.callMethod(
this,
'collapseSubGraph',
[group ?? _i5.undefined],
);
}