ing
This commit is contained in:
parent
3db6aa80e6
commit
f7364cf99e
|
@ -30,7 +30,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</p-table>
|
</p-table>
|
||||||
<p-paginator #paginator [rows]="targetPage.size" [totalRecords]="targetPage.totalElements" [first]="pageIdx "
|
<p-paginator #paginator [rows]="targetPage.size" [totalRecords]="targetPage.totalElements" [first]="(pageIdx-1) * targetPage.size"
|
||||||
(onPageChange)="onPaginate($event)"></p-paginator>
|
(onPageChange)="onPaginate($event)"></p-paginator>
|
||||||
|
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|
|
@ -57,6 +57,7 @@ export class ListComponent implements OnInit, OnChanges {
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
// this.getTargetList();
|
// this.getTargetList();
|
||||||
|
console.log(this.paginator);
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnChanges(changes: SimpleChanges): void {
|
ngOnChanges(changes: SimpleChanges): void {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user