Module: CCS::FrontendHelpers::GovUKFrontend::StepByStepNavigation
- Included in:
- CCS::FrontendHelpers::GovUKFrontend
- Defined in:
- lib/ccs/frontend_helpers/govuk_frontend/step_by_step_navigation.rb
Overview
GOV.UK Step by step navigation
This helper is used for generating the Step by step navigation component from the / GDS - Pages - Step by step navigation
To use this component you need the following from GOV.UK Publishing Components. For the SCSS components you should add:
For the JavaScript you should add:
Instance Method Summary collapse
-
#govuk_step_by_step_navigation(step_by_step_navigation_sections, **options) ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Step by step navigation component.
Instance Method Details
#govuk_step_by_step_navigation(step_by_step_navigation_sections, **options) ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Step by step navigation component
30 31 32 |
# File 'lib/ccs/frontend_helpers/govuk_frontend/step_by_step_navigation.rb', line 30 def (, **) Components::GovUK::StepByStepNavigation.new(context: self, step_by_step_navigation_sections: , **).render end |