Skip to content

Commit

Permalink
hide page size options on search pages (#2298)
Browse files Browse the repository at this point in the history
  • Loading branch information
rrchai authored Nov 1, 2023
1 parent eadd3e8 commit 9809d3a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ <h3>Results ({{ searchResultsCount }})</h3>
[pageNumber]="selectedPageNumber || defaultPageNumber"
[pageSize]="selectedPageSize || defaultPageSize"
[totalRecords]="searchResultsCount"
[itemsPerPage]="[12, 24, 36, 48]"
(pageChange)="onParamChange({ pageNumber: $event.page, pageSize: $event.rows,})"
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ <h3>Results ({{ searchResultsCount }})</h3>
[pageNumber]="selectedPageNumber || defaultPageNumber"
[pageSize]="selectedPageSize || defaultPageSize"
[totalRecords]="searchResultsCount"
[itemsPerPage]="[12, 24, 36, 48]"
(pageChange)="onParamChange({ pageNumber: $event.page, pageSize: $event.rows,})"
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export class PaginatorComponent implements OnInit {
@Input({ required: false }) pageLinkSize = 5;
@Input({ required: true }) pageSize = 0; // number of rows to display in new page
@Input({ required: true }) totalRecords = 0;
@Input({ required: true }) itemsPerPage!: number[];
@Input({ required: false }) itemsPerPage!: number[];

@Output() pageChange = new EventEmitter();

itemIndex = 0; // index of the first item in the new page
Expand Down

0 comments on commit 9809d3a

Please sign in to comment.