Class: DesignSystem::Nhsuk::Builders::PaginationRenderer

Inherits:
Generic::Builders::PaginationRenderer show all
Defined in:
lib/design_system/nhsuk/builders/pagination_renderer.rb

Overview

This class is used to provide will_paginate renderer for NHS UK.

Instance Method Summary collapse

Methods inherited from Generic::Builders::PaginationRenderer

#container_attributes, #html_container, #initialize, #previous_or_next_page

Methods included from Generic::Builders::Concerns::BrandDerivable

#brand

Constructor Details

This class inherits a constructor from DesignSystem::Generic::Builders::PaginationRenderer

Instance Method Details

#prepare(collection, options, template) ⇒ Object

NHSUK doesn’t show page number links so overriding it here



9
10
11
12
# File 'lib/design_system/nhsuk/builders/pagination_renderer.rb', line 9

def prepare(collection, options, template)
  options.merge!({ page_links: false })
  super
end