Class: GovukComponent::SummaryList
- 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
Instance Method Summary collapse
Methods inherited from Base
Methods included from Traits::CustomClasses
Constructor Details
This class inherits a constructor from GovukComponent::Base
Instance Method Details
#any_row_has_actions? ⇒ 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 |