Class: Irelia::Table::Component::ColumnComponent

Inherits:
Component
  • Object
show all
Defined in:
app/components/irelia/table/component.rb

Instance Method Summary collapse

Methods inherited from Component

#add_css_classes, after_initialize, #html_options, inherited, run_after_initialize_hooks

Constructor Details

#initialize(**options) ⇒ ColumnComponent

Returns a new instance of ColumnComponent.



15
16
17
# File 'app/components/irelia/table/component.rb', line 15

def initialize(**options)
  super(**options)
end

Instance Method Details

#callObject



25
26
27
28
29
# File 'app/components/irelia/table/component.rb', line 25

def call
   :th, html_options do
    content
  end
end

#variantsObject



19
20
21
22
23
# File 'app/components/irelia/table/component.rb', line 19

def variants
  class_names(
    "irelia-table irelia-table__head-column",
  )
end