Module: CCS::FrontendHelpers::GovUKFrontend::Select
- Included in:
- CCS::FrontendHelpers::GovUKFrontend
- Defined in:
- lib/ccs/frontend_helpers/govuk_frontend/select.rb
Overview
GOV.UK Select
This helper is used for generating the select component from the GDS - Components - Select
Instance Method Summary collapse
-
#govuk_select(attribute, items, **options) ⇒ Object
Generates the HTML for the GOV.UK Select component.
Instance Method Details
#govuk_select(attribute, items, **options) ⇒ Object
Generates the HTML for the GOV.UK Select component
22 23 24 |
# File 'lib/ccs/frontend_helpers/govuk_frontend/select.rb', line 22 def govuk_select(attribute, items, **) Components::GovUK::Field::Input::Select.new(context: self, attribute: attribute, items: items, **).render end |