Class: FoxTail::Table::HeaderComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/fox_tail/table/header_component.rb

Instance Method Summary collapse

Instance Method Details

#before_renderObject



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

#callObject



26
27
28
29
30
# File 'app/components/fox_tail/table/header_component.rb', line 26

def call
   :tr, html_attributes do
    columns.each { |column| concat column }
  end
end

#render?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'app/components/fox_tail/table/header_component.rb', line 22

def render?
  columns?
end