Sha256: ee8d3cd0b83e33d88a0a8da65d86202a1083c1c776b2b9e35ac1d03e739c90e1

Contents?: true

Size: 533 Bytes

Versions: 19

Compression:

Stored size: 533 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_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

19 entries across 19 versions & 1 rubygems

Version Path
effective_datatables-2.6.19 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.6.18 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.6.17 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.6.16 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.6.15 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.6.14 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.6.13 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.6.12 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.6.11 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.6.10 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.6.9 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.6.8 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.6.7 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.6.6 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.6.5 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.6.4 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.6.3 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.6.2 app/models/effective/effective_datatable/dsl/bulk_actions.rb
effective_datatables-2.6.1 app/models/effective/effective_datatable/dsl/bulk_actions.rb