Sha256: 323ad02d0792621ecac9bfcc5b20702e348aa5a85b07eec1f6ea5ca32f5be4c9
Contents?: true
Size: 844 Bytes
Versions: 1
Compression:
Stored size: 844 Bytes
Contents
# frozen_string_literal: true require_relative '../../components/govuk/field/input/select' module CCS module FrontendHelpers::GovUKFrontend # = GOV.UK Select # # This helper is used for generating the select component from the # {https://design-system.service.gov.uk/components/select GDS - Components - Select} module Select # Generates the HTML for the GOV.UK Select component # # @param (see CCS::Components::GovUK::Input::Select#initialize) # # @option (see CCS::Components::GovUK::Input::Select#initialize) # # @return (see CCS::Components::GovUK::Input::Select#render) def govuk_select(attribute, items, **options) Components::GovUK::Field::Input::Select.new(context: self, attribute: attribute, items: items, **options).render end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ccs-frontend_helpers-0.1.0.rc.2 | lib/ccs/frontend_helpers/govuk_frontend/select.rb |