Class: FoxTail::Table::ColumnComponent
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- FoxTail::Table::ColumnComponent
- Defined in:
- app/components/fox_tail/table/column_component.rb
Instance Method Summary collapse
Instance Method Details
#before_render ⇒ Object
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 |
#call ⇒ Object
19 20 21 |
# File 'app/components/fox_tail/table/column_component.rb', line 19 def call content_tag tag, content, html_attributes end |
#even? ⇒ Boolean
9 10 11 |
# File 'app/components/fox_tail/table/column_component.rb', line 9 def even? position.is_a?(Numeric) && position.even? end |