Class: Phlexi::Table::Components::SelectionCell

Inherits:
HTML
  • Object
show all
Defined in:
lib/phlexi/table/components/selection_cell.rb

Instance Method Summary collapse

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_templateObject



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