blob: 74f2c2e365dd5cab52bec8cf8bb89f04f906159b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
<p-dataTable
[value]="followers" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage"
sortField="createdAt" (onLazyLoad)="loadLazy($event)"
>
<p-column field="id" header="ID" [style]="{ width: '60px' }"></p-column>
<p-column field="score" header="Score"></p-column>
<p-column field="follower.name" header="Name"></p-column>
<p-column field="follower.host" header="Host"></p-column>
<p-column field="state" header="State"></p-column>
<p-column field="createdAt" header="Created date" [sortable]="true"></p-column>
</p-dataTable>
|