blob: c599d9278ffa211d4d5727c1b01dcc56aaf68b42 [file] [log] [blame]
<!-------------------------------------------------------------------------------
* Copyright (c) 2020 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
-------------------------------------------------------------------------------->
<div *ngIf="appPageSize > 0" class="page-info">
<button (click)="getPreviousPage()"
[class.openk-button-disabled]="!(appPage > 0)"
[disabled]="appDisabled || !(appPage > 0)"
class="openk-button openk-info page-info--button">
<mat-icon class="page-info--button--icon">keyboard_arrow_left</mat-icon>
</button>
<span
[class.disabled]="appDisabled"
class="page-info--text">
{{appPage == null ? 1 : appPage + 1}} / {{appPageSize}}
</span>
<button (click)="getNextPage()"
[disabled]="appDisabled || appPage >= appPageSize - 1"
class="openk-button openk-info page-info--button">
<mat-icon class="page-info--button--icon">keyboard_arrow_right</mat-icon>
</button>
</div>