Sha256: eb6e43ef1e0dc5b9568c20bbec1241b00aa6937eb819f7b0136156aa4b5765f4
Contents?: true
Size: 875 Bytes
Versions: 12
Compression:
Stored size: 875 Bytes
Contents
# frozen_string_literal: true require_relative '../../components/govuk/task_list' module CCS module FrontendHelpers module GovUKFrontend # = GOV.UK Task list # # This helper is used for generating the task list component from the # {https://design-system.service.gov.uk/components/task-list GDS - Components - Task list} module TaskList # Generates the HTML for the GOV.UK Task list component # # @param (see CCS::Components::GovUK::TaskList#initialize) # # @option (see CCS::Components::GovUK::TaskList#initialize) # # @return (see CCS::Components::GovUK::TaskList#render) def govuk_task_list(task_list_items, **options) Components::GovUK::TaskList.new(context: self, task_list_items: task_list_items, **options).render end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems