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

Method onClick

src/aria/private/toolbar/toolbar.ts:204–207  ·  view source on GitHub ↗

Handles click events for the toolbar.

(event: MouseEvent)

Source from the content-addressed store, hash-verified

202
203 /** Handles click events for the toolbar. */
204 onClick(event: MouseEvent) {
205 if (this.disabled() || (event as PointerEvent).pointerType === '') return;
206 this._goto(event);
207 }
208
209 /**
210 * 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