Module: Effective::EffectiveDatatable::Dsl::BulkActions

Included in:
DatatableDslTool
Defined in:
app/models/effective/effective_datatable/dsl/bulk_actions.rb

Instance Method Summary collapse

Instance Method Details

#bulk_action(*args) ⇒ Object



6
7
8
# File 'app/models/effective/effective_datatable/dsl/bulk_actions.rb', line 6

def bulk_action(*args)
  datatable._bulk_actions.push((:li, link_to(*args)))
end

#bulk_action_content(&block) ⇒ Object



18
19
20
# File 'app/models/effective/effective_datatable/dsl/bulk_actions.rb', line 18

def bulk_action_content(&block)
  datatable._bulk_actions.push(block.call)
end

#bulk_action_dividerObject



14
15
16
# File 'app/models/effective/effective_datatable/dsl/bulk_actions.rb', line 14

def bulk_action_divider
  datatable._bulk_actions.push((:li, '', class: 'divider', role: 'separator'))
end

#bulk_download(*args) ⇒ Object



10
11
12
# File 'app/models/effective/effective_datatable/dsl/bulk_actions.rb', line 10

def bulk_download(*args)
  datatable._bulk_actions.push((:li, link_to(*args), 'data-authenticity-token' => form_authenticity_token))
end