Noora.PaginationGroup (noora v0.3.2)

Pagination group component for paginating with a defined set of pages. Do not use this component for cursor-based pagination.

Example

<.pagination_group
  current_page={@current_page}
  number_of_pages={25}
  page_patch={fn page -> ~p"/products?page=#{page}" end}
/>

Summary

Functions

pagination_group(assigns)

Attributes

  • current_page (:integer) (required) - The current page number.
  • number_of_pages (:integer) (required) - The number of pages to display.
  • page_patch (:fun) (required) - Get a patch for an individual page where the input is the index.
  • Global attributes are accepted.