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

Method toggle

src/cdk/menu/menu-trigger.ts:110–112  ·  view source on GitHub ↗

Toggle the attached menu.

()

Source from the content-addressed store, hash-verified

108
109 /** Toggle the attached menu. */
110 toggle() {
111 this.isOpen() ? this.close() : this.open();
112 }
113
114 /** Open the attached menu. */
115 open() {

Callers 2

_toggleOnKeydownMethod · 0.95
_handleClickMethod · 0.95

Calls 3

closeMethod · 0.95
openMethod · 0.95
isOpenMethod · 0.45

Tested by

no test coverage detected