#
Category: Helpers
See all categories.
Helpers
@pagy.✳ Helpers
The @pagy instance provides all the helpers to use in your code.
Methods • Helpers
data_hash
data_hash plucks a hash of key-value pairs from the pagy object. It is useful for exporting pagination
Methods • Helpers
headers_hash
headers_hash generates the standard link header defined in the RFC-8288, and adds 4 customizable headers useful for pagination, that you can merge...
Methods • Helpers
urls_hash
urls_hash returns the :first, :previous, :next, :last non- nil URLs hash.
Methods • Helpers
page_url
page_url returns the URL of any page of any instance. If the page is not available it returns nil.