Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/primefaces/primeng
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Jun 21, 2023
2 parents f09f91e + 80d6b4d commit d421afa
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 { CustomerService } from '../../service/customerservice';
[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

1 comment on commit d421afa

@vercel
Copy link

@vercel vercel bot commented on d421afa Jun 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.