Class: Katalyst::Tables::Cells::OrdinalComponent

Inherits:
Katalyst::Tables::CellComponent show all
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

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_valueObject



13
14
15
# File 'app/components/katalyst/tables/cells/ordinal_component.rb', line 13

def rendered_value
  t("katalyst.tables.orderable.value")
end