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



61
62
63
64
65
66
67
68
69
70
# File 'lib/plutonium/ui/table/components/selection_column.rb', line 61

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