I am using primeng p-table and I want to freeze the first column from horizontal scrolling. The header, body and footer first columns does not scroll when the table is scrolled horizontally. How can I do that?
I am using for *ngIf in header, body and footer. Follow code below. Ignore any syntax error, there are no syntax error in original code.
<tr>
<ng-container *ngFor="let col of columns">
<ng-container *ngIf="condition; else nextTh2">
<th>{{col.label}}</th>
</ng-container>
<ng-template #nextTh>
<ng-container *ngIf="condition2; else nextTh3">
<th>{{col.label}}</th>
</ng-container>
</ng-template>
.
.
.
</ng-container>
</tr>