Module: Effective::EffectiveDatatable::Dsl::BulkActions
- Included in:
- DatatableDslTool
- Defined in:
- app/models/effective/effective_datatable/dsl/bulk_actions.rb
Instance Method Summary collapse
- #bulk_action(title, url, opts = {}) ⇒ Object
- #bulk_action_content(&block) ⇒ Object
- #bulk_action_divider ⇒ Object
- #bulk_download(title, url, opts = {}) ⇒ Object
Instance Method Details
#bulk_action(title, url, opts = {}) ⇒ Object
8 9 10 |
# File 'app/models/effective/effective_datatable/dsl/bulk_actions.rb', line 8 def bulk_action(title, url, opts = {}) datatable._bulk_actions.push(link_to_bulk_action(title, url, opts)) end |
#bulk_action_content(&block) ⇒ Object
20 21 22 |
# File 'app/models/effective/effective_datatable/dsl/bulk_actions.rb', line 20 def bulk_action_content(&block) datatable._bulk_actions.push(block.call) end |
#bulk_action_divider ⇒ Object
16 17 18 |
# File 'app/models/effective/effective_datatable/dsl/bulk_actions.rb', line 16 def bulk_action_divider datatable._bulk_actions.push(content_tag(:div, '', class: 'dropdown-divider')) end |
#bulk_download(title, url, opts = {}) ⇒ Object
12 13 14 |
# File 'app/models/effective/effective_datatable/dsl/bulk_actions.rb', line 12 def bulk_download(title, url, opts = {}) datatable._bulk_actions.push(link_to_bulk_action(title, url, opts.merge('data-bulk-download': true))) end |