Class: LightningUiKit::Table::ActionComponent
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- LightningUiKit::Table::ActionComponent
- Defined in:
- app/components/lightning_ui_kit/table/action_component.rb
Instance Method Summary collapse
- #call(row) ⇒ Object
-
#initialize(&block) ⇒ ActionComponent
constructor
A new instance of ActionComponent.
Constructor Details
#initialize(&block) ⇒ ActionComponent
Returns a new instance of ActionComponent.
2 3 4 |
# File 'app/components/lightning_ui_kit/table/action_component.rb', line 2 def initialize(&block) @block = block end |
Instance Method Details
#call(row) ⇒ Object
6 7 8 |
# File 'app/components/lightning_ui_kit/table/action_component.rb', line 6 def call(row) @block.call(row) end |