Module: CCS::FrontendHelpers::GovUKFrontend::Accordion
- Included in:
- CCS::FrontendHelpers::GovUKFrontend
- Defined in:
- lib/ccs/frontend_helpers/govuk_frontend/accordion.rb
Overview
GOV.UK Accordion
This helper is used for generating the accordion component from the GDS - Components - Accordion
Instance Method Summary collapse
-
#govuk_accordion(accordion_id, accordion_sections, **options) ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Accordion component.
Instance Method Details
#govuk_accordion(accordion_id, accordion_sections, **options) ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Accordion component
22 23 24 |
# File 'lib/ccs/frontend_helpers/govuk_frontend/accordion.rb', line 22 def govuk_accordion(accordion_id, accordion_sections, **) Components::GovUK::Accordion.new(context: self, accordion_id: accordion_id, accordion_sections: accordion_sections, **).render end |