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

Method onClick

src/aria/private/menu/menu.ts:732–736  ·  view source on GitHub ↗

Handles click events for the menu trigger.

()

Source from the content-addressed store, hash-verified

730
731 /** Handles click events for the menu trigger. */
732 onClick() {
733 if (!this.inputs.disabled()) {
734 this.expanded() ? this.close() : this.open({first: true});
735 }
736 }
737
738 /** Handles focusin events for the menu trigger. */
739 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