dmoore1181
dmoore1181

Reputation: 2102

Primeng Turbotable pagination default rows per page

I am using the Prime NG TurboTable Version 7.1.3 and currently have the [rowsPerPageOptions] set to [5, 10, 20, 100] my organization wants to set rows to 100 by default and be able to change the rows per page after that. My problem is that the GUI is still showing 5 when I open the page, even though it is showing more than 5 rows. Is there another setting that I need to change?

Upvotes: 0

Views: 3977

Answers (1)

Kld
Kld

Reputation: 7068

The paginator has the rows property for that:

<p-table [paginator]="true"  [rows]="100" [rowsPerPageOptions]="[5, 10, 20, 100]" ... >
    ...
</p-table>

Upvotes: 1

Related Questions