Module: Pagination::LinksForHelper

Includes:
CurrentPageDescriptionForHelper, FirstPageLinkForHelper, LastPageLinkForHelper, NextPageLinkForHelper, PrevPageLinkForHelper
Included in:
ActionSet::Helpers::HelperMethods
Defined in:
lib/action_set/helpers/pagination/links_for_helper.rb

Instance Method Summary collapse

Methods included from LastPageLinkForHelper

#pagination_last_page_link_for

Methods included from PathForHelper

#pagination_path_for

Methods included from Params::CurrentHelper

#current_params

Methods included from TotalPagesForHelper

#pagination_total_pages_for

Methods included from PageSizeForHelper

#pagination_page_size_for

Methods included from RecordSizeForHelper

#pagination_record_size_for

Methods included from CurrentPageForHelper

#pagination_current_page_for

Methods included from NextPageLinkForHelper

#pagination_next_page_link_for

Methods included from CurrentPageDescriptionForHelper

#pagination_current_page_description_for

Methods included from PrevPageLinkForHelper

#pagination_prev_page_link_for

Methods included from FirstPageLinkForHelper

#pagination_first_page_link_for

Instance Method Details



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/action_set/helpers/pagination/links_for_helper.rb', line 17

def pagination_links_for(set, **attributes)
  (:nav,
              **attributes.merge(
                class: 'pagination',
                'aria-label': 'Page navigation'
              )) do
    safe_join([
                pagination_first_page_link_for(set),
                pagination_prev_page_link_for(set),
                pagination_current_page_description_for(set),
                pagination_next_page_link_for(set),
                pagination_last_page_link_for(set)
              ])
  end
end