Class: Phlexi::Table::Components::SelectionCell
- Defined in:
- lib/phlexi/table/components/selection_cell.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ SelectionCell
constructor
A new instance of SelectionCell.
- #view_template ⇒ Object
Constructor Details
#initialize(value) ⇒ SelectionCell
Returns a new instance of SelectionCell.
7 8 9 |
# File 'lib/phlexi/table/components/selection_cell.rb', line 7 def initialize(value) @value = value end |
Instance Method Details
#view_template ⇒ Object
11 12 13 |
# File 'lib/phlexi/table/components/selection_cell.rb', line 11 def view_template input(type: :checkbox, value: @value, class: themed(:selection_checkbox)) end |