Class: ActiveAdmin::BatchActions::ResourceSelectionToggleCell

Inherits:
Component
  • Object
show all
Defined in:
lib/active_admin/batch_actions/views/selection_cells.rb

Overview

Creates the toggle checkbox used to toggle the collection selection on/off

Instance Method Summary collapse

Instance Method Details

#build(label_text = '') ⇒ Object


10
11
12
13
14
15
# File 'lib/active_admin/batch_actions/views/selection_cells.rb', line 10

def build(label_text = '')
  label do
    input type: "checkbox", id: "collection_selection_toggle_all", name: "collection_selection_toggle_all", class: "toggle_all"
    text_node label_text if label_text.present?
  end
end