Hi I am trying to convert my PrimeNG data-table to turbo table. Actually I have used [hidden]="!cols.visibility"
in PrimeNG my data-table. Now what I should used to achieve the same in turbo table.
Previous datatable Column Code :
1 2 3 4 5 |
<p-column *ngFor="let col of cols" [hidden]="!col.visibility" [field]="col.field" [header]="col.header"> </p-column> |
● Documentation URL: https://www.primefaces.org/primeng/#/datatable
New Turbo table Column Code :
1 2 3 4 5 6 7 8 |
<ng-template pTemplate="header" let-cols> <tr> <th style="width: 2.25em"></th> <th *ngFor="let col of cols"> {{col.header}} </th> </tr> </ng-template> |
● Documentation URL : https://www.primefaces.org/primeng/#/table
What should I use ? I have checked documentation as well but didn’t find solution.