expandTree method

void expandTree([
  1. Node? node
])

This command expands all collapsed selected Nodes. This operation is performed within an "Expand Tree" transaction. Just before the end of the transaction this raises the "TreeExpanded" DiagramEvent, with a collection of expanded Nodes as the subject. This currently has no default keyboard shortcut.

This calls Node#expandTree to perform the expand, which will set Node#isTreeExpanded to true. You may want to save the collapsed/expanded state to the model by using a TwoWay Binding on the "isTreeExpanded" property of your Nodes, and perhaps also on the Node#wasTreeExpanded 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 {Node=} node if supplied, ignore the selection and collapse this particular Node subtree. @see #canExpandTree

Implementation

void expandTree([_i3.Node? node]) {
  _i4.callMethod(
    this,
    'expandTree',
    [node ?? _i5.undefined],
  );
}