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

Method onClick

src/aria/private/menu/menu.ts:709–713  ·  view source on GitHub ↗

Handles click events for the menu trigger.

()

Source from the content-addressed store, hash-verified

707
708 /** Handles click events for the menu trigger. */
709 onClick() {
710 if (!this.inputs.disabled()) {
711 this.expanded() ? this.close() : this.open({first: true});
712 }
713 }
714
715 /** Handles focusin events for the menu trigger. */
716 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