Sha256: 8595c5293ff9285b0910913f2ffa6f29e08275b46cf2fb5b0cf3f8fbd63a2d84

Contents?: true

Size: 651 Bytes

Versions: 35

Compression:

Stored size: 651 Bytes

Contents

module Effective
  module EffectiveDatatable
    module Dsl
      module BulkActions

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

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

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

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

      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
effective_datatables-3.3.5 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-3.3.4 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-3.3.3 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-3.3.2 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-3.3.1 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-3.3.0 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-3.2.7 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-3.2.6 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-3.2.5 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-3.2.4 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-3.2.3 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-3.2.2 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-3.2.1 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-3.2 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-3.1.3 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-3.1.2 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-3.1.1 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-3.1.0 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-3.0.16 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-3.0.15 app/models/effective/effective_datatable/dsl/bulk_actions.rb