Project

General

Profile

1
<p-table [value]="processHistoryData"
2
         [lazy]="true"
3
         (onLazyLoad)="onPagination($event)"
4
         [paginator]="true"
5
         [rows]="rows"
6
         styleClass="p-datatable-gridlines"
7
         [rowHover]="true"
8
         [totalRecords]="processHistoryData?.length"
9
         [loading]="loading"
10
         [autoLayout]="true"
11
         #pTable
12
>
13
  <ng-template pTemplate="header">
14
    <tr>
15
      <th>Process History ID</th>
16
      <th>Process Status</th>
17
      <th>Process Status Update</th>
18
      <th>Process History Description</th>
19
      <th>User ID</th>
20
    </tr>
21
  </ng-template>
22
  <ng-template let-process pTemplate="body">
23
    <tr>
24
      <td>{{process.id}}</td>
25
      <td>{{process.processStatus.name}}</td>
26
      <td>{{process.processStatusUpdate|date: "dd/MM/yyyy HH:mm"}}</td>
27
      <td>{{process.processHistoryDescription}}</td>
28
      <td>{{process.userId}}</td>
29
    </tr>
30
  </ng-template>
31
</p-table>
(1-1/4)