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

Method onClick

src/aria/private/menu/menu.ts:701–705  ·  view source on GitHub ↗

Handles click events for the menu trigger.

()

Source from the content-addressed store, hash-verified

699
700 /** Handles click events for the menu trigger. */
701 onClick() {
702 if (!this.inputs.disabled()) {
703 this.expanded() ? this.close() : this.open({first: true});
704 }
705 }
706
707 /** Handles focusin events for the menu trigger. */
708 onFocusIn() {

Callers

nothing calls this directly

Calls 4

closeMethod · 0.95
openMethod · 0.95
expandedMethod · 0.80
disabledMethod · 0.45

Tested by

no test coverage detected