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

Function toggleDescendants

src/cdk/tree/control/base-tree-control.ts:72–76  ·  view source on GitHub ↗

Toggles a subtree rooted at `node` recursively.

(dataNode: T)

Source from the content-addressed store, hash-verified

70
71 /** Toggles a subtree rooted at `node` recursively. */
72 toggleDescendants(dataNode: T): void {
73 this.expansionModel.isSelected(this._trackByValue(dataNode))
74 ? this.collapseDescendants(dataNode)
75 : this.expandDescendants(dataNode);
76 }
77
78 /** Collapse all dataNodes in the tree. */
79 collapseAll(): void {

Callers

nothing calls this directly

Calls 3

isSelectedMethod · 0.65
collapseDescendantsMethod · 0.65
expandDescendantsMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…