Sha256: 85604efbb8b247634dbde0b749d363415572e22b9a012419ed397defb8e8347c

Contents?: true

Size: 683 Bytes

Versions: 12

Compression:

Stored size: 683 Bytes

Contents

module Effective
  module EffectiveDatatable
    module Dsl
      module BulkActions
        # These get added into the view as helpers
        # To be called inside datatable { bulk_actions_column do .. end }
        def bulk_action(*args)
          concat content_tag(:li, link_to(*args))
        end

        def bulk_download(*args)
          concat content_tag(:li, link_to(*args), 'data-authenticity-token' => form_authenticity_token)
        end

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

        def bulk_action_content(&block)
          concat block.call
        end

      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
effective_datatables-2.6.21 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.12.2 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.12.1 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.12.0 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.11.2 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.11.1 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.11.0 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.10.0 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.9.0 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.8.0 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.7.0 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.6.20 app/models/effective/effective_datatable/dsl/bulk_actions.rb