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

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

Instance Method Summary collapse

Instance Method Details

#bulk_action(*args) ⇒ Object

These get added into the view as helpers To be called inside datatable { bulk_actions_column do .. end }



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

def bulk_action(*args)
  concat (:li, link_to(*args))
end

#bulk_action_content(&block) ⇒ Object



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

def bulk_action_content(&block)
  concat block.call
end

#bulk_action_dividerObject



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

def bulk_action_divider
  concat (:li, '', class: 'divider', role: 'separator')
end