MCPcopy Create free account
hub / github.com/angular/components / toggle

Method toggle

src/aria/private/behaviors/tree/tree.ts:232–234  ·  view source on GitHub ↗

Toggles the currently active item in the tree.

(item?: T)

Source from the content-addressed store, hash-verified

230
231 /** Toggles the currently active item in the tree. */
232 toggle(item?: T) {
233 this.selectionBehavior.toggle(item);
234 }
235
236 /** Toggles the currently active item in the tree, deselecting all other items. */
237 toggleOne() {

Callers

nothing calls this directly

Calls 1

toggleMethod · 0.65

Tested by

no test coverage detected