Class: Irelia::Table::Row::Component::CellComponent
- Inherits:
-
Component
- Object
- ViewComponentContrib::Base
- Component
- Irelia::Table::Row::Component::CellComponent
- Defined in:
- app/components/irelia/table/row/component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**options) ⇒ CellComponent
constructor
A new instance of CellComponent.
- #variants ⇒ Object
Methods inherited from Component
#add_css_classes, after_initialize, #html_options, inherited, run_after_initialize_hooks
Constructor Details
#initialize(**options) ⇒ CellComponent
Returns a new instance of CellComponent.
18 19 20 |
# File 'app/components/irelia/table/row/component.rb', line 18 def initialize(**) super(**) end |
Instance Method Details
#call ⇒ Object
28 29 30 31 32 |
# File 'app/components/irelia/table/row/component.rb', line 28 def call content_tag :td, do content end end |
#variants ⇒ Object
22 23 24 25 26 |
# File 'app/components/irelia/table/row/component.rb', line 22 def variants class_names( "irelia-table__cell", ) end |