Module: Decidim::Admin::Paginable::PerPageHelper

Defined in:
decidim-admin/app/helpers/decidim/admin/paginable/per_page_helper.rb

Overview

This module includes helpers the :per_page cell's option

Instance Method Summary collapse

Instance Method Details

#admin_filters_paginationObject

Renders the pagination dropdown menu in the admin panel.


16
17
18
# File 'decidim-admin/app/helpers/decidim/admin/paginable/per_page_helper.rb', line 16

def admin_filters_pagination
  cell("decidim/admin/results_per_page", per_page_options)
end

#per_page_optionsObject


8
9
10
11
12
13
# File 'decidim-admin/app/helpers/decidim/admin/paginable/per_page_helper.rb', line 8

def per_page_options
  OpenStruct.new(
    per_page: per_page,
    per_page_range: Decidim::Admin.per_page_range
  )
end