Guest User

Untitled

a guest
Jan 23rd, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. <ng-template pTemplate="header" let-columns>
  2. <tr>
  3. <th *ngIf="needsCheckboxHeader" [attr.rowspan]="rowspan" style="width: 3em"><p-tableHeaderCheckbox></p-tableHeaderCheckbox></th>
  4. <ng-container *ngTemplateOutlet="customHeaderTemplateName"></ng-container>
  5. </tr>
  6. </ng-template>
  7.  
  8. <ng-template #customColumnHeaders>
  9. <th *ngFor="let column of columns" class="text-align-center" [style.width]="column.width" pResizableColumn>
  10. {{column.header}}
  11. </th>
  12. <th *ngFor="let item of items" style="width: 150px;">
  13. <div>
  14. {{ item }}
  15. </div>
  16. </th>
  17.  
  18. <div style="margin-top:20px;">
  19. <grid-object [columnsKeys]="gridColumns" [value]="data" [needsCheckboxHeader]="true" [rowspan]="1" [customHeaderTemplateName]="customColumnHeaders">
  20. </grid-object>
  21. </div>
Add Comment
Please, Sign In to add comment