DEV Community

John Ding
John Ding

Posted on

Primereact Datatable custom paginator

paginator
onPage={handleDataPage}
paginatorTemplate={
    {
       layout: 'PrevPageLink CurrentPageReport NextPageLink',
              PrevPageLink: PrevPageLinkButton,
              NextPageLink: NextPageLinkButton
            } as PaginatorTemplateOptions
          }
          currentPageReportTemplate="{first} to {last} of {totalRecords}"
          rows={lazyState.rows}
          onPage={handleDataPage}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)