Skip to content

Commit

Permalink
fixes 13119, by tweaking the documentation of paginator examples for …
Browse files Browse the repository at this point in the history
…programmatic usage
  • Loading branch information
Casper de Groot authored and Casper de Groot committed May 31, 2023
1 parent 7e3bec6 commit db45971
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/app/showcase/doc/table/paginatorprogrammaticdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { AppDocSectionTextComponent } from '../../layout/doc/docsectiontext/app.
[paginator]="true"
[rows]="rows"
[showCurrentPageReport]="true"
[(first)]="first"
[first]="first"
[tableStyle]="{ 'min-width': '50rem' }"
currentPageReportTemplate="Showing {first} to {last} of {totalRecords} entries"
[rowsPerPageOptions]="[10, 25, 50]"
Expand Down Expand Up @@ -92,6 +92,11 @@ export class PaginatorProgrammaticDoc {

code: Code = {
basic: `
<div class="mb-3">
<p-button type="button" icon="pi pi-chevron-left" (click)="prev()" [disabled]="isFirstPage()" styleClass="p-button-text"></p-button>
<p-button type="button" icon="pi pi-refresh" (click)="reset()" styleClass="p-button-text"></p-button>
<p-button type="button" icon="pi pi-chevron-right" (click)="next()" [disabled]="isLastPage()" styleClass="p-button-text"></p-button>
</div>
<p-table
[value]="customers"
[paginator]="true"
Expand Down Expand Up @@ -125,6 +130,11 @@ export class PaginatorProgrammaticDoc {
</ng-template>
</p-table>`,
html: `
<div class="mb-3">
<p-button type="button" icon="pi pi-chevron-left" (click)="prev()" [disabled]="isFirstPage()" styleClass="p-button-text"></p-button>
<p-button type="button" icon="pi pi-refresh" (click)="reset()" styleClass="p-button-text"></p-button>
<p-button type="button" icon="pi pi-chevron-right" (click)="next()" [disabled]="isLastPage()" styleClass="p-button-text"></p-button>
</div>
<div class="card">
<p-table
[value]="customers"
Expand Down

0 comments on commit db45971

Please sign in to comment.