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