Class: FoxTail::Table::HeaderComponent
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- FoxTail::Table::HeaderComponent
- Defined in:
- app/components/fox_tail/table/header_component.rb
Instance Method Summary collapse
Instance Method Details
#before_render ⇒ Object
16 17 18 19 20 |
# File 'app/components/fox_tail/table/header_component.rb', line 16 def before_render super html_attributes[:class] = classnames theme.apply(:root, self), html_class end |
#call ⇒ Object
26 27 28 29 30 |
# File 'app/components/fox_tail/table/header_component.rb', line 26 def call content_tag :tr, html_attributes do columns.each { |column| concat column } end end |
#render? ⇒ Boolean
22 23 24 |
# File 'app/components/fox_tail/table/header_component.rb', line 22 def render? columns? end |