Class: Katalyst::Tables::Cells::SelectComponent

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

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

#labelObject



14
15
16
# File 'app/components/katalyst/tables/cells/select_component.rb', line 14

def label
  tag.label(tag.input(type: :checkbox))
end

#rendered_valueObject



18
19
20
# File 'app/components/katalyst/tables/cells/select_component.rb', line 18

def rendered_value
  tag.label(tag.input(type: :checkbox))
end