Class: Katalyst::Tables::Cells::OrdinalComponent
- Inherits:
-
Katalyst::Tables::CellComponent
- Object
- ViewComponent::Base
- Katalyst::Tables::CellComponent
- Katalyst::Tables::Cells::OrdinalComponent
- Defined in:
- app/components/katalyst/tables/cells/ordinal_component.rb
Instance Attribute Summary
Attributes inherited from Katalyst::Tables::CellComponent
#collection, #column, #record, #row
Instance Method Summary collapse
-
#initialize(primary_key:) ⇒ OrdinalComponent
constructor
A new instance of OrdinalComponent.
- #rendered_value ⇒ Object
Methods inherited from Katalyst::Tables::CellComponent
#call, #heading?, #inspect, #label, #to_s, #value, #with_content_wrapper
Constructor Details
#initialize(primary_key:) ⇒ OrdinalComponent
Returns a new instance of OrdinalComponent.
7 8 9 10 11 |
# File 'app/components/katalyst/tables/cells/ordinal_component.rb', line 7 def initialize(primary_key:, **) super(**) @primary_key = primary_key end |
Instance Method Details
#rendered_value ⇒ Object
13 14 15 |
# File 'app/components/katalyst/tables/cells/ordinal_component.rb', line 13 def rendered_value t("katalyst.tables.orderable.value") end |