Class: JetUi::Table::ThComponent

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

Instance Method Summary collapse

Constructor Details

#initialize(sticky: nil, **options) ⇒ ThComponent

Returns a new instance of ThComponent.



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

def initialize(sticky: nil, **options)
  @sticky  = sticky
  @options = options
end

Instance Method Details

#callObject



11
12
13
# File 'app/components/jet_ui/table/th_component.rb', line 11

def call
   :th, content, class: classes, **@options
end