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

Method onClick

src/cdk/testing/tests/test-main-component.ts:101–107  ·  view source on GitHub ↗
(event: MouseEvent)

Source from the content-addressed store, hash-verified

99 }
100
101 onClick(event: MouseEvent) {
102 this._assignRelativeCoordinates(event, this.clickResult);
103
104 this.modifiers = ['Shift', 'Alt', 'Control', 'Meta']
105 .map(key => (event.getModifierState(key) ? key.toLowerCase() : ''))
106 .join('-');
107 }
108
109 onRightClick(event: MouseEvent) {
110 this.rightClickResult.button = event.button;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected