Events

The component provides two event callbacks, one for pagination and the other one for lazy loading. Both events provide two arguments to get the first record and number of rows present on the page. The lazy loading event is invoked on pagination, filtering, and sorting functionalities by enabling a lazy mode.

Name Parameters Description
onLazyLoad
  • event.first: First row offset
  • event.rows: Number of rows per page
Callback to invoke when paging, sorting, or filtering happens in a lazy mode.
onPage
  • event.first: Index of the first record in page
  • event.rows: Number of rows on the page
Callback to invoke when pagination occurs.

 

It provides many other features such as facets for header and footer display (p-header and p-footer), pagination to navigate between multiple pages, and a lazy loading feature for retrieving the data on demand.

The complete demo application with instructions is available on GitHub at
https://github.com/ova2/angular-development-with-primeng/tree/master/chapter5/datalist.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.163.229