You cannot add custom text inside the Paginator line. But you can add the overall hit just below the page using the footer inside the table, like
<p-footer>Total Hits:{{totalHits}}</p-footer>
Otherwise, you can add the total number of hits over the page by doing a separate pagination, for example
<p-dataTable [value]="data" [paginator]="false">.... <p-column field="Col1" header="Column 1"><p-column> <p-footer>total Hits: {{totalHits}}</p-footer> </p-dataTable> <p-paginator rows="10" totalRecords="120" [rowsPerPageOptions]="[10,20,30]"></p-paginator>
sainu source share