Module: CCS::FrontendHelpers::GovUKFrontend::Details
- Included in:
- CCS::FrontendHelpers::GovUKFrontend
- Defined in:
- lib/ccs/frontend_helpers/govuk_frontend/details.rb
Overview
GOV.UK Details
This helper is used for generating the details component from the GDS - Components - Details
Instance Method Summary collapse
-
#govuk_details(summary_text, **options) { ... } ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Details component.
Instance Method Details
#govuk_details(summary_text, **options) { ... } ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Details component
24 25 26 |
# File 'lib/ccs/frontend_helpers/govuk_frontend/details.rb', line 24 def govuk_details(summary_text, **, &) Components::GovUK::Details.new(context: self, summary_text: summary_text, **).render(&) end |