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