Я использую Angular 8. Мне нужно исправить положение первых трех столбцов таблицы, чтобы она не поддерживала прокрутку, это мой недавний код:
<mat-tab label="Rental details">
<div class="table-responsive" *ngIf="!rentLoader" >
<table class="table">
<thead class="text-info">
<tr>
<th>Voucher No.</th>
<th>Voucher Date</th>
<th>Amount</th>
<th>Mode Of deduction</th>
<th>Deduction Date</th>
<th>Deduction Amount</th>
<th>Remarks</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let rentals of rentalDetailsList | paginate: { itemsPerPage: 10, currentPage: rentalPage, id: 'rentalPagination'}">
<td>{{rentals.Voucher_No}}</td>
<td>{{rentals.Voucher_Date | date : 'short'}}</td>
<td>₹ {{rentals.Amount}}</td>
<td>{{rentals['Mode of deduction']}}</td>
<td>{{rentals['Deduction Date']}}</td>
<td>₹ {{rentals['Deduction Amount']}}</td>
<td>{{rentals.Remarks}}</td>
</tr>
</tbody>
</table>
</div>
<div class="text-center" *ngIf="rentalDetailsList.length == 0 && !rentLoader">
No data found.
</div>
</mat-tab>
Мне нужно заморозить Voucher No.
, Voucher Date
и Amount
.
Спасибо