* 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)
| 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 | } |