Class: FoxTail::Table::ColumnComponent

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

Instance Method Summary collapse

Instance Method Details

#before_renderObject



13
14
15
16
17
# File 'app/components/fox_tail/table/column_component.rb', line 13

def before_render
  super

  html_attributes[:class] = theme.apply(:root, self), html_class
end

#callObject



19
20
21
# File 'app/components/fox_tail/table/column_component.rb', line 19

def call
   tag, content, html_attributes
end

#even?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'app/components/fox_tail/table/column_component.rb', line 9

def even?
  position.is_a?(Numeric) && position.even?
end