Class: Trestle::Table::SelectColumn::Renderer
Instance Method Summary
collapse
#initialize, #render, #render?
Instance Method Details
#classes ⇒ Object
23
24
25
|
# File 'lib/trestle/table/select_column.rb', line 23
def classes
"select-row"
end
|
#content(instance) ⇒ Object
19
20
21
|
# File 'lib/trestle/table/select_column.rb', line 19
def content(instance)
checkbox "selected[]", instance.to_param, id: checkbox_id(instance.to_param), data: { checkbox_select_target: "checkbox", action: "change->checkbox-select#toggle" }
end
|
#data ⇒ Object
27
28
29
|
# File 'lib/trestle/table/select_column.rb', line 27
def data
{}
end
|
15
16
17
|
# File 'lib/trestle/table/select_column.rb', line 15
def
checkbox "", nil, id: checkbox_id("all"), data: { checkbox_select_target: "selectAll", action: "change->checkbox-select#toggleAll" }
end
|