Class: Avo::RowSelectorComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/avo/row_selector_component.rb

Instance Method Summary collapse

Instance Method Details

#data_actionObject

Shift-select is wired on table rows only: grid items render this component without an index and have no table row for the controller to walk up to.



10
11
12
13
14
15
16
# File 'app/components/avo/row_selector_component.rb', line 10

def data_action
  data = "input->item-selector#toggle input->item-select-all#selectRow"

  data += " click->record-selector#toggleMultiple" if @index.present?

  data
end