Pagination - ita-social-projects/what-front GitHub Wiki

How to use:

Pagination component accepts 5 properties:

  1. itemsPerPage - Quantity of items on one page
    • itemsPerPage - type: Number
  2. totalItems - it should be length of array of the essence.
    • totalItems - type: Number
  3. paginate - function for clicking on image
    • paginate - type: function
  4. prevPage - function for clicking on the button "previous page"
    • prevPage - type: function
  5. nextPage - function for clicking on the button "next page"
    • nextPage - type: function
  6. page - it should be your current page
    • page - type: Number

All properties are required


Example of usage

image

image

image

Result

image

image

image