Class: ActiveAdmin::BatchActions::ResourceSelectionTogglePanel

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

Overview

Creates a wrapper panel for all index pages, except for the table, as the table has the checkbox in the thead

Instance Method Summary collapse

Instance Method Details

#buildObject



28
29
30
31
32
# File 'lib/active_admin/batch_actions/views/selection_cells.rb', line 28

def build
  super(:id => "collection_selection_toggle_panel")
  resource_selection_toggle_cell
  div(:id => "collection_selection_toggle_explaination" ) { I18n.t('active_admin.batch_actions.selection_toggle_explanation', :default => "(Toggle Selection)") }
end