mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 04:23:04 +00:00
41914: DSO list with pagination from rest
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<ds-pagination [paginationOptions]="config"
|
||||
[collectionSize]="(objects.payload | async)?.length"
|
||||
(pageChange)="config.currentPage = $event"
|
||||
(pageSizeChange)="config.pageSize = $event">
|
||||
[collectionSize]="(pageInfo | async)?.totalElements"
|
||||
(pageChange)="config.currentPage = pageChange($event)"
|
||||
(pageSizeChange)="config.pageSize = pageSize($event)">
|
||||
<ul *ngIf="objects.hasSucceeded | async">
|
||||
<li *ngFor="let object of (objects.payload | async) | paginate: { itemsPerPage: config.pageSize, currentPage: config.currentPage, totalItems: (objects.payload | async)?.length }">
|
||||
<li *ngFor="let object of (objects.payload | async) | paginate: { itemsPerPage: (pageInfo | async)?.elementsPerPage, currentPage: (pageInfo | async)?.currentPage, totalItems: (pageInfo | async)?.totalElements }">
|
||||
<ds-object-list-element [object]="object"></ds-object-list-element>
|
||||
</li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user