Method: CCS::Components::GovUK::SummaryList::Row#render

Defined in:
lib/ccs/components/govuk/summary_list/row.rb

#renderActiveSupport::SafeBuffer

Generates the HTML for the GOV.UK Summary list row

Returns:

  • (ActiveSupport::SafeBuffer)


57
58
59
60
61
62
63
# File 'lib/ccs/components/govuk/summary_list/row.rb', line 57

def render
  tag.div(class: options[:attributes][:class]) do
    concat(key.render)
    concat(value.render)
    concat(actions.render) if actions
  end
end