Utilizing Primeng virtual scroll table in Angular to manage large datasets in an array. I am interested in using the scrollToIndex
. Is there an equivalent of cdk-virtual-scroll-viewport
in Primeng table? I need the functionality where, upon a user clicking a button, the table will scroll to a specific index (e.g., 100).
<div class="log-console-parent" #logsParentDiv (wheel)="onUserScroll()">
<p-table [columns]="cols" [value]="getFilteredLogs()" [scrollable]="true" [rows]="100" scrollHeight="flex"
[virtualScroll]="true" [virtualRowHeight]="27">
<ng-template pTemplate="body" let-rowData let-rowIndex="rowIndex" let-columns="columns">
<tr>
<td>
<span [innerHTML]="rowData.message"></span>
</td>
</tr>
</ng-template>
</p-table>
</div>
Versions: Angular:
12, Primeng:
12