Skip to content

Commit

Permalink
Update table.component.html
Browse files Browse the repository at this point in the history
  • Loading branch information
heinerwalter authored Nov 27, 2024
1 parent d130cdd commit 2c3a543
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<thead *ngIf="header?.length">
<tr>
<th *ngFor="let cell of header">{{cell}}</th>
<th *ngFor="let cell of header; let c = index" c == 0 ? 'width: 1%;' : ''>{{cell}}</th>
</tr>
</thead>

Expand All @@ -15,10 +15,10 @@
<td *ngFor="let cell of data[i + 1]"></td>
</ng-container>

<ng-container *ngFor="let cell of row">
<ng-container *ngFor="let cell of row; let c = index">

<ng-container *ngIf="cell.style == 'header'">
<th>
<th [style]="c == 0 ? 'width: 1%;' : ''">
<ng-container [ngTemplateOutlet]="cellTemplate"
[ngTemplateOutletContext]="{cell: cell}"></ng-container>
</th>
Expand Down

0 comments on commit 2c3a543

Please sign in to comment.