Class: Railsboot::TableComponent
- Defined in:
- app/components/railsboot/table_component.rb
Constant Summary
Constants inherited from Component
Component::COLORS, Component::DEFAULT_COLOR
Instance Method Summary collapse
-
#initialize(**html_attributes) ⇒ TableComponent
constructor
A new instance of TableComponent.
Constructor Details
#initialize(**html_attributes) ⇒ TableComponent
Returns a new instance of TableComponent.
5 6 7 8 9 10 11 12 13 |
# File 'app/components/railsboot/table_component.rb', line 5 def initialize(**html_attributes) @html_attributes = html_attributes @html_attributes[:tag] = "table" @html_attributes[:class] = class_names( "table", html_attributes.delete(:class) ) end |