Skip to main content

Data Paginator

Description

<jp-data-paginator> is a component with a fuctionality of providing navigation for paginated data.


Attributes

NameRequiredTypeDescription
lengthnumbertotal number of items
pageIndexnumbercurrent page number starting from 0
pageSizenumbernumber of items per page
pageSizeOptionsnumber []list of different page sizes to choose from
getRangeLabelstringtext of the range label
itemsPerPageLabelstringlabel for number of items shown per page


Slots

This component does not have any slots.



Methods

  • nextPage
  • prevPage
  • lastPage
  • firstPage


Events

  • change
    • triggers when the page changes


Demo

Live Editor
// import '../static/c/data-paginator.wc.js';

<jp-data-paginator></jp-data-paginator>
Result
Loading...