Class: Irelia::Table::Component::ColumnComponent
- Inherits:
-
Component
- Object
- ViewComponentContrib::Base
- Component
- Irelia::Table::Component::ColumnComponent
- Defined in:
- app/components/irelia/table/component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**options) ⇒ ColumnComponent
constructor
A new instance of ColumnComponent.
- #variants ⇒ Object
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(**) super(**) 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, 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 |