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
Instance Method Summary collapse
-
#initialize(rows: nil, first_cell_is_header: false, classes: [], html_attributes: {}) ⇒ BodyComponent
constructor
A new instance of BodyComponent.
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 |