Class: Phlexi::Table::Components::SelectionColumn
- Inherits:
-
Column
- Object
- Base
- Column
- Phlexi::Table::Components::SelectionColumn
show all
- Defined in:
- lib/phlexi/table/components/selection_column.rb
Instance Attribute Summary
Attributes inherited from Base
#key, #options, #parent
Instance Method Summary
collapse
#colspan, #header_cell_attributes
#alignment
#label
Methods inherited from Base
#dom_id, #initialize
Instance Method Details
#data_cell(wrapped_object) ⇒ Object
11
12
13
|
# File 'lib/phlexi/table/components/selection_column.rb', line 11
def data_cell(wrapped_object)
SelectionCell.new(wrapped_object.field(key).dom.value)
end
|
#data_cell_attributes(wrapped_object) ⇒ Object
15
16
17
|
# File 'lib/phlexi/table/components/selection_column.rb', line 15
def data_cell_attributes(wrapped_object)
{scope: :row}.merge(super)
end
|
7
8
9
|
# File 'lib/phlexi/table/components/selection_column.rb', line 7
def
SelectionCell.new("all")
end
|