Class: JetUi::Table::TdComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- JetUi::Table::TdComponent
- Defined in:
- app/components/jet_ui/table/td_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(actions: false, sticky: nil, **options) ⇒ TdComponent
constructor
A new instance of TdComponent.
Constructor Details
#initialize(actions: false, sticky: nil, **options) ⇒ TdComponent
Returns a new instance of TdComponent.
6 7 8 9 10 |
# File 'app/components/jet_ui/table/td_component.rb', line 6 def initialize(actions: false, sticky: nil, **) @actions = actions @sticky = sticky @options = end |
Instance Method Details
#call ⇒ Object
12 13 14 |
# File 'app/components/jet_ui/table/td_component.rb', line 12 def call content_tag :td, content, class: classes, **@options end |