Class: JetUi::Table::TbodyComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/jet_ui/table/tbody_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(**options) ⇒ TbodyComponent

Returns a new instance of TbodyComponent.



6
7
8
# File 'app/components/jet_ui/table/tbody_component.rb', line 6

def initialize(**options)
  @options = options
end

Instance Method Details

#callObject



10
11
12
# File 'app/components/jet_ui/table/tbody_component.rb', line 10

def call
   :tbody, content, class: @options.delete(:class), **@options
end