Class: Irelia::Table::Row::Component::CellComponent

Inherits:
Component
  • Object
show all
Defined in:
app/components/irelia/table/row/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) ⇒ CellComponent

Returns a new instance of CellComponent.



18
19
20
# File 'app/components/irelia/table/row/component.rb', line 18

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

Instance Method Details

#callObject



28
29
30
31
32
# File 'app/components/irelia/table/row/component.rb', line 28

def call
   :td, html_options do
    content
  end
end

#variantsObject



22
23
24
25
26
# File 'app/components/irelia/table/row/component.rb', line 22

def variants
  class_names(
    "irelia-table__cell",
  )
end