I am currently using PrimeNG table control with a frozen column feature.
Everything working fine and I am able to get frozen column but now I want to modify my frozen and unfrozen column styles and custom width of column for that I have used below property.
Code:
<p-table [columns]="scrollableCols" [frozenColumns]="frozenCols" [value]="cars" [scrollable]="true" scrollHeight="300px" frozenWidth="250px">
<ng-template pTemplate="colgroup" let-columns>
<colgroup>
<col style="width:200px">
<col style="width:50px">
<col style="width:100px">
<col style="width:100px">
<col style="width:100px">
<col style="width:100px">
</colgroup>
</ng-template>
<ng-template pTemplate="header" let-columns>
<tr>
<th *ngFor="let col of columns">
{{col.header}}
</th>
</tr>
</ng-template>
<ng-template pTemplate="body" let-rowData let-columns="columns">
<tr>
<td *ngFor="let col of columns">
{{rowData[col.field]}}
</td>
</tr>
</ng-template>
</p-table>
by using width I am able to achieve width of my columns but for the first 2 columns, both froze & unfroze column table automatically taking the same width for all 2 columns I want to assign the different sizes of columns in both froze & unfroze column s.
is it possible to add different sizes for froze & unfroze columns?
