Module: CCS::FrontendHelpers::GovUKFrontend::Checkboxes

Included in:
CCS::FrontendHelpers::GovUKFrontend
Defined in:
lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb

Overview

GOV.UK Checkboxes

This helper is used for generating the checkboxes component from the GDS - Components - Checkboxes

Instance Method Summary collapse

Instance Method Details

#govuk_checkboxes(attribute, checkbox_items, **options) ⇒ Object

Generates the HTML for the GOV.UK Checkboxes component



22
23
24
# File 'lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb', line 22

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