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

Method toggle

src/material/select/select.ts:720–722  ·  view source on GitHub ↗

Toggles the overlay panel open or closed.

()

Source from the content-addressed store, hash-verified

718
719 /** Toggles the overlay panel open or closed. */
720 toggle(): void {
721 this.panelOpen ? this.close() : this.open();
722 }
723
724 /** Opens the overlay panel. */
725 open(): void {

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
openMethod · 0.95

Tested by

no test coverage detected