Sha256: 2b4bb83fa4db983c6e6568c859a4a9abbf3195ad29afadfbd6daa713ab37e193

Contents?: true

Size: 974 Bytes

Versions: 20

Compression:

Stored size: 974 Bytes

Contents

# frozen_string_literal: true

require_relative '../../components/govuk/field/inputs/checkboxes'

module CCS
  module FrontendHelpers
    module GovUKFrontend
      # = GOV.UK Checkboxes
      #
      # This helper is used for generating the checkboxes component from the
      # {https://design-system.service.gov.uk/components/checkboxes GDS - Components - Checkboxes}

      module Checkboxes
        # Generates the HTML for the GOV.UK Checkboxes component
        #
        # @param (see CCS::Components::GovUK::Inputs::Checkboxes#initialize)
        #
        # @option (see CCS::Components::GovUK::Inputs::Checkboxes#initialize)
        #
        # @return (see CCS::Components::GovUK::Inputs::Checkboxes#render)

        def govuk_checkboxes(attribute, checkbox_items, **options)
          Components::GovUK::Field::Inputs::Checkboxes.new(context: self, attribute: attribute, checkbox_items: checkbox_items, **options).render
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
ccs-frontend_helpers-2.1.0 lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb
ccs-frontend_helpers-2.0.0 lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb
ccs-frontend_helpers-1.2.0 lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb
ccs-frontend_helpers-1.1.2 lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb
ccs-frontend_helpers-1.1.1 lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb
ccs-frontend_helpers-1.1.0 lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb
ccs-frontend_helpers-1.1.0.beta0 lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb
ccs-frontend_helpers-1.0.0 lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb
ccs-frontend_helpers-0.5.0.beta1 lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb
ccs-frontend_helpers-0.5.0.beta0 lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb
ccs-frontend_helpers-0.3.0 lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb
ccs-frontend_helpers-0.2.0 lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb
ccs-frontend_helpers-0.1.2 lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb
ccs-frontend_helpers-0.1.1 lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb
ccs-frontend_helpers-0.1.1.rc.1 lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb
ccs-frontend_helpers-0.1.0.rc.7 lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb
ccs-frontend_helpers-0.1.0.rc.6 lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb
ccs-frontend_helpers-0.1.0.rc.5 lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb
ccs-frontend_helpers-0.1.0.rc.4 lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb
ccs-frontend_helpers-0.1.0.rc.3 lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb