Sha256: 200e614af821b270fa5a99b3e4aea43bf7cb876e55a60d9c411a4d2b551590b4
Contents?: true
Size: 894 Bytes
Versions: 20
Compression:
Stored size: 894 Bytes
Contents
# frozen_string_literal: true require_relative '../../components/govuk/field/input/select' module CCS module FrontendHelpers module 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 end
Version data entries
20 entries across 20 versions & 1 rubygems