MCPcopy
hub / github.com/angular/components / onClick

Method onClick

src/aria/private/toolbar/toolbar.ts:203–206  ·  view source on GitHub ↗

Handles click events for the toolbar.

(event: MouseEvent)

Source from the content-addressed store, hash-verified

201
202 /** Handles click events for the toolbar. */
203 onClick(event: MouseEvent) {
204 if (this.disabled() || (event as PointerEvent).pointerType === '') return;
205 this._goto(event);
206 }
207
208 /**
209 * Sets the toolbar to its default initial state.

Callers 1

toolbar.spec.tsFile · 0.45

Calls 2

_gotoMethod · 0.95
disabledMethod · 0.45

Tested by

no test coverage detected