Class: GovukComponent::PaginationComponent::PreviousPage
- Inherits:
-
AdjacentPage
- Object
- ViewComponent::Base
- Base
- AdjacentPage
- GovukComponent::PaginationComponent::PreviousPage
- Defined in:
- app/components/govuk_component/pagination_component/previous_page.rb
Instance Attribute Summary
Attributes inherited from AdjacentPage
#block_mode, #href, #label_text, #suffix, #text, #visually_hidden_text
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(href:, text:, label_text: nil, block_mode: true, classes: [], html_attributes: {}) ⇒ PreviousPage
constructor
A new instance of PreviousPage.
Methods inherited from AdjacentPage
Methods inherited from Base
Constructor Details
#initialize(href:, text:, label_text: nil, block_mode: true, classes: [], html_attributes: {}) ⇒ PreviousPage
Returns a new instance of PreviousPage.
2 3 4 5 6 7 8 9 10 11 12 |
# File 'app/components/govuk_component/pagination_component/previous_page.rb', line 2 def initialize(href:, text:, label_text: nil, block_mode: true, classes: [], html_attributes: {}) super( suffix: "prev", text:, href:, label_text:, block_mode:, classes:, html_attributes: ) end |