Class: GovukComponent::TableComponent::BodyComponent
- Inherits:
-
Base
- Object
- ViewComponent::Base
- Base
- GovukComponent::TableComponent::BodyComponent
- Defined in:
- app/components/govuk_component/table_component/body_component.rb
Instance Attribute Summary
Attributes inherited from Base
Attributes included from GovukComponent::Traits::CustomHtmlAttributes
Instance Method Summary collapse
-
#initialize(rows: nil, first_cell_is_header: false, classes: [], html_attributes: {}) ⇒ BodyComponent
constructor
A new instance of BodyComponent.
Methods included from GovukComponent::Traits::CustomClasses
Methods included from Govuk::Components::Helpers::CssUtilities
Constructor Details
#initialize(rows: nil, first_cell_is_header: false, classes: [], html_attributes: {}) ⇒ BodyComponent
Returns a new instance of BodyComponent.
4 5 6 7 8 |
# File 'app/components/govuk_component/table_component/body_component.rb', line 4 def initialize(rows: nil, first_cell_is_header: false, classes: [], html_attributes: {}) super(classes: classes, html_attributes: html_attributes) build_rows_from_row_data(rows, first_cell_is_header) end |