Class: JetUi::Table::TrComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- JetUi::Table::TrComponent
- Defined in:
- app/components/jet_ui/table/tr_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**options) ⇒ TrComponent
constructor
A new instance of TrComponent.
Constructor Details
#initialize(**options) ⇒ TrComponent
Returns a new instance of TrComponent.
6 7 8 |
# File 'app/components/jet_ui/table/tr_component.rb', line 6 def initialize(**) @options = end |
Instance Method Details
#call ⇒ Object
10 11 12 |
# File 'app/components/jet_ui/table/tr_component.rb', line 10 def call content_tag :tr, content, class: @options.delete(:class), **@options end |