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

Method _toggle

src/cdk/tree/toggle.ts:37–45  ·  view source on GitHub ↗
(event: Event)

Source from the content-addressed store, hash-verified

35 // Focus this node with expanding or collapsing it. This ensures that the active node will always
36 // be visible when expanding and collapsing.
37 _toggle(event: Event): void {
38 event.stopPropagation();
39
40 this.recursive
41 ? this._tree.toggleDescendants(this._treeNode.data)
42 : this._tree.toggle(this._treeNode.data);
43
44 this._tree._keyManager.focusItem(this._treeNode);
45 }
46}

Callers

nothing calls this directly

Calls 3

toggleDescendantsMethod · 0.65
toggleMethod · 0.65
focusItemMethod · 0.65

Tested by

no test coverage detected