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

Method onClick

src/aria/private/toolbar/toolbar.ts:222–225  ·  view source on GitHub ↗

Handles click events for the toolbar.

(event: MouseEvent)

Source from the content-addressed store, hash-verified

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