Sha256: 5b08abb6fe65628ec7b9e77409f04aab243ab4644485b839582240c0394c14e5
Contents?: true
Size: 925 Bytes
Versions: 2
Compression:
Stored size: 925 Bytes
Contents
# frozen_string_literal: true require_relative '../../components/govuk/details' module CCS module FrontendHelpers module GovUKFrontend # = GOV.UK Details # # This helper is used for generating the details component from the # {https://design-system.service.gov.uk/components/details GDS - Components - Details} module Details # Generates the HTML for the GOV.UK Details component # # @param (see CCS::Components::GovUK::Details#initialize) # # @option (see CCS::Components::GovUK::Details#initialize) # # @yield (see CCS::Components::GovUK::Details#render) # # @return (see CCS::Components::GovUK::Details#render) def govuk_details(summary_text, **options, &) Components::GovUK::Details.new(context: self, summary_text: summary_text, **options).render(&) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ccs-frontend_helpers-2.1.0 | lib/ccs/frontend_helpers/govuk_frontend/details.rb |
ccs-frontend_helpers-2.0.0 | lib/ccs/frontend_helpers/govuk_frontend/details.rb |