#

In 

# 💚 Methods


The @pagy instance provides methods for every navigation tag and helper to use in your code.

Its class is determined by the paginator used, but you can safely ignore it. Simply utilize its methods.

data_hash
headers_hash
links_hash
page_url
nav_tag
nav_js_tag
combo_nav_js_tag
info_tag
limit_selector_js_tag
a_tags

  • No arguments: default pagy style
  • :bootstrap
    • Set classes: 'pagination any_class' style option to override the default 'pagination' class.
  • :bulma
    • Set classes: 'pagination any_class' style option to override the default 'pagination is-centered' classes.
  • id: 'my-nav':

    • Set the id HTML attribute of the nav tag.
  • aria_label: 'My Label':

    • Override the default pagy.aria_label.nav string of the aria-label attribute. (Use an already pluralized string).

    Refer to ARIA for additional information.