Class: Plutonium::UI::Table::Components::SelectionHeaderCell

Inherits:
Phlexi::Table::HTML
  • Object
show all
Defined in:
lib/plutonium/ui/table/components/selection_column.rb

Overview

Header cell checkbox with “select all” functionality

Instance Method Summary collapse

Instance Method Details

#view_templateObject



52
53
54
55
56
57
58
59
60
61
# File 'lib/plutonium/ui/table/components/selection_column.rb', line 52

def view_template
  input(
    type: :checkbox,
    class: themed(:selection_checkbox),
    data: {
      bulk_actions_target: "checkboxAll",
      action: "bulk-actions#toggleAll"
    }
  )
end