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

Method onClick

src/aria/private/toolbar/toolbar.ts:217–220  ·  view source on GitHub ↗

Handles click events for the toolbar.

(event: MouseEvent)

Source from the content-addressed store, hash-verified

215
216 /** Handles click events for the toolbar. */
217 onClick(event: MouseEvent) {
218 if (this.disabled() || (event as PointerEvent).pointerType === '') return;
219 this._goto(event);
220 }
221
222 /**
223 * 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