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

Method _buttonClicked

src/material/paginator/paginator.ts:373–380  ·  view source on GitHub ↗

* Callback invoked when one of the navigation buttons is called. * @param targetIndex Index to which the paginator should navigate. * @param isDisabled Whether the button is disabled.

(targetIndex: number, isDisabled: boolean)

Source from the content-addressed store, hash-verified

371 * @param isDisabled Whether the button is disabled.
372 */
373 protected _buttonClicked(targetIndex: number, isDisabled: boolean) {
374 // Note that normally disabled buttons won't dispatch the click event, but the paginator ones
375 // do, because we're using `disabledInteractive` to allow them to be focusable. We need to
376 // check here to avoid the navigation.
377 if (!isDisabled) {
378 this._navigate(targetIndex);
379 }
380 }
381}

Callers

nothing calls this directly

Calls 1

_navigateMethod · 0.95

Tested by

no test coverage detected