Class: Katalyst::Tables::Cells::SelectComponent
- Inherits:
-
Katalyst::Tables::CellComponent
- Object
- ViewComponent::Base
- Katalyst::Tables::CellComponent
- Katalyst::Tables::Cells::SelectComponent
- Defined in:
- app/components/katalyst/tables/cells/select_component.rb
Instance Attribute Summary
Attributes inherited from Katalyst::Tables::CellComponent
#collection, #column, #record, #row
Instance Method Summary collapse
-
#initialize(params:, form_id:) ⇒ SelectComponent
constructor
A new instance of SelectComponent.
- #label ⇒ Object
- #rendered_value ⇒ Object
Methods inherited from Katalyst::Tables::CellComponent
#call, #heading?, #inspect, #to_s, #value, #with_content_wrapper
Constructor Details
#initialize(params:, form_id:) ⇒ SelectComponent
Returns a new instance of SelectComponent.
7 8 9 10 11 12 |
# File 'app/components/katalyst/tables/cells/select_component.rb', line 7 def initialize(params:, form_id:, **) super(**) @params = params @form_id = form_id end |
Instance Method Details
#label ⇒ Object
14 15 16 |
# File 'app/components/katalyst/tables/cells/select_component.rb', line 14 def label tag.label(tag.input(type: :checkbox)) end |
#rendered_value ⇒ Object
18 19 20 |
# File 'app/components/katalyst/tables/cells/select_component.rb', line 18 def rendered_value tag.label(tag.input(type: :checkbox)) end |