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

Method toggle

src/cdk/listbox/listbox.ts:494–496  ·  view source on GitHub ↗

* Toggle the selected state of the given option. * @param option The option to toggle

(option: CdkOption<T>)

Source from the content-addressed store, hash-verified

492 * @param option The option to toggle
493 */
494 toggle(option: CdkOption<T>) {
495 this.toggleValue(option.value);
496 }
497
498 /**
499 * Toggle the selected state of the given value.

Callers

nothing calls this directly

Calls 1

toggleValueMethod · 0.95

Tested by

no test coverage detected