MCPcopy Index your code
hub / github.com/angular/components / expand

Method expand

src/cdk/tree/tree.ts:647–653  ·  view source on GitHub ↗

Expand the data node. If it is already expanded, does nothing.

(dataNode: T)

Source from the content-addressed store, hash-verified

645
646 /** Expand the data node. If it is already expanded, does nothing. */
647 expand(dataNode: T): void {
648 if (this.treeControl) {
649 this.treeControl.expand(dataNode);
650 } else if (this._expansionModel) {
651 this._expansionModel.select(this._getExpansionKey(dataNode));
652 }
653 }
654
655 /** Collapse the data node. If it is already collapsed, does nothing. */
656 collapse(dataNode: T): void {

Callers

nothing calls this directly

Calls 3

_getExpansionKeyMethod · 0.95
expandMethod · 0.65
selectMethod · 0.65

Tested by

no test coverage detected