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

Method expandAll

src/cdk/tree/tree.ts:713–719  ·  view source on GitHub ↗

Expands all data nodes in the tree.

()

Source from the content-addressed store, hash-verified

711
712 /** Expands all data nodes in the tree. */
713 expandAll(): void {
714 if (this.treeControl) {
715 this.treeControl.expandAll();
716 } else if (this._expansionModel) {
717 this._forEachExpansionKey(keys => this._expansionModel?.select(...keys));
718 }
719 }
720
721 /** Collapse all data nodes in the tree. */
722 collapseAll(): void {

Callers

nothing calls this directly

Calls 3

_forEachExpansionKeyMethod · 0.95
expandAllMethod · 0.65
selectMethod · 0.65

Tested by

no test coverage detected