Class: GovukComponent::SummaryListComponent::RowComponent
- Inherits:
-
Base
- Object
- ViewComponent::Base
- Base
- GovukComponent::SummaryListComponent::RowComponent
- Defined in:
- app/components/govuk_component/summary_list_component/row_component.rb
Instance Attribute Summary collapse
-
#href ⇒ Object
readonly
Returns the value of attribute href.
-
#visually_hidden_text ⇒ Object
readonly
Returns the value of attribute visually_hidden_text.
Attributes inherited from Base
Attributes included from Traits::CustomHtmlAttributes
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: [], html_attributes: {}) ⇒ RowComponent
constructor
A new instance of RowComponent.
Methods included from Traits::CustomClasses
Methods included from Govuk::Components::Helpers::CssUtilities
Constructor Details
#initialize(classes: [], html_attributes: {}) ⇒ RowComponent
Returns a new instance of RowComponent.
8 9 10 |
# File 'app/components/govuk_component/summary_list_component/row_component.rb', line 8 def initialize(classes: [], html_attributes: {}) super(classes: classes, html_attributes: html_attributes) end |
Instance Attribute Details
#href ⇒ Object (readonly)
Returns the value of attribute href.
2 3 4 |
# File 'app/components/govuk_component/summary_list_component/row_component.rb', line 2 def href @href end |
#visually_hidden_text ⇒ Object (readonly)
Returns the value of attribute visually_hidden_text.
2 3 4 |
# File 'app/components/govuk_component/summary_list_component/row_component.rb', line 2 def visually_hidden_text @visually_hidden_text end |
Instance Method Details
#call ⇒ Object
12 13 14 15 16 |
# File 'app/components/govuk_component/summary_list_component/row_component.rb', line 12 def call tag.div(class: classes, **html_attributes) do safe_join([key, value, actions_content]) end end |