Class: JetUi::Table::ThComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- JetUi::Table::ThComponent
- Defined in:
- app/components/jet_ui/table/th_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(sticky: nil, **options) ⇒ ThComponent
constructor
A new instance of ThComponent.
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, **) @sticky = sticky @options = end |
Instance Method Details
#call ⇒ Object
11 12 13 |
# File 'app/components/jet_ui/table/th_component.rb', line 11 def call content_tag :th, content, class: classes, **@options end |