]>
Commit | Line | Data |
---|---|---|
04e0fc48 C |
1 | <p-dataTable |
2 | [value]="following" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" | |
3 | sortField="createdAt" (onLazyLoad)="loadLazy($event)" | |
4 | > | |
fb4fd623 | 5 | <p-column field="id" header="ID" [style]="{ width: '60px' }"></p-column> |
04e0fc48 C |
6 | <p-column field="following.host" header="Host"></p-column> |
7 | <p-column field="state" header="State"></p-column> | |
8 | <p-column field="createdAt" header="Created date" [sortable]="true"></p-column> | |
f595d394 | 9 | <p-column styleClass="action-cell"> |
04e0fc48 | 10 | <ng-template pTemplate="body" let-following="rowData"> |
e600e1fe | 11 | <my-delete-button (click)="removeFollowing(following)"></my-delete-button> |
04e0fc48 C |
12 | </ng-template> |
13 | </p-column> | |
14 | </p-dataTable> |