Class: LightningUiKit::Table::ColumnComponent
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- LightningUiKit::Table::ColumnComponent
- Defined in:
- app/components/lightning_ui_kit/table/column_component.rb
Instance Attribute Summary collapse
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
- #call(row) ⇒ Object
-
#initialize(title, &block) ⇒ ColumnComponent
constructor
A new instance of ColumnComponent.
Constructor Details
#initialize(title, &block) ⇒ ColumnComponent
Returns a new instance of ColumnComponent.
4 5 6 7 |
# File 'app/components/lightning_ui_kit/table/column_component.rb', line 4 def initialize(title, &block) @title = title @block = block end |
Instance Attribute Details
#title ⇒ Object (readonly)
Returns the value of attribute title.
2 3 4 |
# File 'app/components/lightning_ui_kit/table/column_component.rb', line 2 def title @title end |
Instance Method Details
#call(row) ⇒ Object
9 10 11 |
# File 'app/components/lightning_ui_kit/table/column_component.rb', line 9 def call(row) @block.call(row) end |