How to programmatically trigger refresh primeNG datatable when a button is clicked
<p>I have a refresh button that is outside the primeNG datatable.
How do I programmatically trigger to refresh the datatable?</p>

<p>something like this:</p>

<pre><code>&lt;div class="pull-right"&gt;
  &lt;button
    id="FilterBtnId"
    (click)="???"&gt;
  &lt;/button&gt;
                &lt;/div&gt;
&lt;p-dataTable
   #datatable
   [value]="datasource"
   [(selection)]="jobs"
   [totalRecords]="totalRecords"
   selectionMode="multiple"
   resizableColumns="true"
   [pageLinks]="10"
   [rows]="10"
   [rowsPerPageOptions]="[10, 25, 50, 100]"
   [paginator]="true"
   [responsive]="true"
   [lazy]="true"
   (onLazyLoad)="getNewDatasource($event)"
   (onRowSelect)="onRowSelect($event)"
   &gt;
     &lt;p-column [style]="{'width':'40px'}" selectionMode="multiple"&gt;&lt;/p-column&gt;
     &lt;p-column *ngFor="let col of dt.colDefs" [field]="col.field" [header]="col.headerName" [sortable]="true"&gt;
     &lt;/p-column&gt;
&lt;/p-dataTable&gt;
</code></pre>