Class: GovukComponent::SummaryList

Inherits:
Base
  • Object
show all
Includes:
ViewComponent::Slotable
Defined in:
app/components/govuk_component/summary_list.rb

Defined Under Namespace

Classes: Row

Instance Attribute Summary

Attributes included from Traits::CustomHtmlAttributes

#html_attributes

Instance Method Summary collapse

Methods inherited from Base

#initialize, wrap_slot

Methods included from Traits::CustomClasses

#classes

Constructor Details

This class inherits a constructor from GovukComponent::Base

Instance Method Details

#any_row_has_actions?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'app/components/govuk_component/summary_list.rb', line 7

def any_row_has_actions?
  rows.any? { |r| r.action.present? }
end