MCPcopy
hub / github.com/angular/components / toggle

Function toggle

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

Toggles one single data node's expanded/collapsed state.

(dataNode: T)

Source from the content-addressed store, hash-verified

50
51 /** Toggles one single data node's expanded/collapsed state. */
52 toggle(dataNode: T): void {
53 this.expansionModel.toggle(this._trackByValue(dataNode));
54 }
55
56 /** Expands one single data node. */
57 expand(dataNode: T): void {

Callers 1

constructorMethod · 0.85

Calls 1

toggleMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…