Class: Irelia::Table::Component::ColumnComponent
- Inherits:
-
Component
- Object
- ViewComponentContrib::Base
- Component
- Irelia::Table::Component::ColumnComponent
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
15
16
17
|
# File 'app/components/irelia/table/component.rb', line 15
def initialize(**options)
super(**options)
end
|
Instance Method Details
#call ⇒ Object
25
26
27
28
29
|
# File 'app/components/irelia/table/component.rb', line 25
def call
content_tag :th, html_options do
content
end
end
|
#variants ⇒ Object
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
|