Module: Effective::EffectiveDatatable::Dsl::BulkActions
- Included in:
- Datatable
- Defined in:
- app/models/effective/effective_datatable/dsl/bulk_actions.rb
Instance Method Summary collapse
-
#bulk_action(*args) ⇒ Object
These get added into the view as helpers To be called inside datatable { bulk_actions_column do .. end }.
- #bulk_action_content(&block) ⇒ Object
- #bulk_action_divider ⇒ Object
- #bulk_download(*args) ⇒ Object
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 content_tag(:li, link_to(*args)) end |
#bulk_action_content(&block) ⇒ Object
19 20 21 |
# File 'app/models/effective/effective_datatable/dsl/bulk_actions.rb', line 19 def bulk_action_content(&block) concat block.call end |
#bulk_action_divider ⇒ Object
15 16 17 |
# File 'app/models/effective/effective_datatable/dsl/bulk_actions.rb', line 15 def bulk_action_divider concat content_tag(:li, '', class: 'divider', role: 'separator') end |
#bulk_download(*args) ⇒ Object
11 12 13 |
# File 'app/models/effective/effective_datatable/dsl/bulk_actions.rb', line 11 def bulk_download(*args) concat content_tag(:li, link_to(*args), 'data-authenticity-token' => form_authenticity_token) end |