ng-environment-setup
Version:
ng environment setup
27 lines (26 loc) • 791 B
HTML
<div class="scroll-table">
<div class="scroll-table-thead">
<table class="top">
<thead>
<tr>
<th
*ngFor="let c of tableData.columns"
[style.height.px]="cellHeight"
[attr.width]="c.width">{{c.label}}</th>
</tr>
</thead>
</table>
</div>
<div class="scroll-table-body" [style.height.vh]="scrollHeight" (mouseover)="pause()" (mouseout)="scroll()">
<table #table [style.top.px]="top" [style.transition.s]="transition">
<tbody #tbody>
<tr *ngFor="let item of tableData.data">
<td
*ngFor="let c of tableData.columns"
[style.height.px]="cellHeight"
[attr.width]="c.width">{{item[c.value]}}</td>
</tr>
</tbody>
</table>
</div>
</div>