In my development project, I have implemented PrimeNG Turbotable with the code <p-table #dt
.
Based on information from here, using dt.reset()
will clear the sort, filter, and paginator settings. However, I am looking for a solution to only reset the paginator state and reload the table data, while keeping the sorting intact.
I want this action to occur when users click on a button like the one shown in this image: https://i.sstatic.net/Y27PD.png
<p-button icon="fa fa-refresh" (click)="refresh()"></p-button>
Can someone guide me on how to achieve this task?