Class: Katalyst::Tables::Cells::BooleanComponent
- Inherits:
-
Katalyst::Tables::CellComponent
- Object
- ViewComponent::Base
- Katalyst::Tables::CellComponent
- Katalyst::Tables::Cells::BooleanComponent
- Defined in:
- app/components/katalyst/tables/cells/boolean_component.rb
Overview
Shows Yes/No for boolean values
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?, #initialize, #inspect, #label, #to_s, #value, #with_content_wrapper
Constructor Details
This class inherits a constructor from Katalyst::Tables::CellComponent
Instance Method Details
#rendered_value ⇒ Object
8 9 10 |
# File 'app/components/katalyst/tables/cells/boolean_component.rb', line 8 def rendered_value value ? "Yes" : "No" end |