#
Category: Methods
See all categories.
The @pagy
instance provides methods for every navigation tag and helper to use in your code.
data_hash
extracts a hash of key-value pairs that you pluck from the pagy object. It is useful for exporting pagination
headers_hash
generates the standard link
header defined in the RFC-8288, and adds 4 customizable headers useful for pagination, that you can merge...
links_hash
returns the :first
, :previous
, :next
, :last
non- nil
URLs hash.
page_url
returns the URL of any page of any instance. If the page is not available it returns nil
.
nav_tag
returns an HTML string containing pagination links, wrapped in a nav
tag, ready to be used in your view.
nav_js_tag
functions similarly to a nav_tag, with the following added features:
combo_nav_js_tag
combines navigation and pagination info in a single compact element.
info_tag
provides information about the content of the current pagination.
The limit_selector_js_tag
allows the user to select any arbitrary limit per page, up to the :requestable_limit
The previous_a_tag
and next_a_tag
return the enabled/disabled previous/next page anchor tag.