Sha256: d2fdd1729a595b2a93f3e428ce699aa58622b5d3cf6ba03bd8bebc3480d9e9a4

Contents?: true

Size: 575 Bytes

Versions: 33

Compression:

Stored size: 575 Bytes

Contents

module Rao
  module Component
    module CollectionTable::BatchActionsConcern
      extend ActiveSupport::Concern

      # Example:
      #
      #     = table.batch_actions(actions: { destroy: url_for(action: :destroy_many) })
      #
      def batch_actions(options = {}, &block)
        @wrap_in_form = true
        title = @view.render partial: 'rao/component/table/header_cells/batch_actions', locals: { options: options }
        options.reverse_merge!(render_as: :batch_actions, title: title)
        column(:batch_actions, options, &block)
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
rao-component-0.0.43.pre app/concerns/rao/component/collection_table/batch_actions_concern.rb
rao-component-0.0.42.pre app/concerns/rao/component/collection_table/batch_actions_concern.rb
rao-component-0.0.41.pre app/concerns/rao/component/collection_table/batch_actions_concern.rb
rao-component-0.0.40.pre app/concerns/rao/component/collection_table/batch_actions_concern.rb
rao-component-0.0.39.pre app/concerns/rao/component/collection_table/batch_actions_concern.rb
rao-component-0.0.38.pre app/concerns/rao/component/collection_table/batch_actions_concern.rb
rao-component-0.0.37.pre app/concerns/rao/component/collection_table/batch_actions_concern.rb
rao-component-0.0.36.pre app/concerns/rao/component/collection_table/batch_actions_concern.rb
rao-component-0.0.35.pre app/concerns/rao/component/collection_table/batch_actions_concern.rb
rao-component-0.0.34.pre app/concerns/rao/component/collection_table/batch_actions_concern.rb
rao-component-0.0.33.pre app/concerns/rao/component/collection_table/batch_actions_concern.rb
rao-component-0.0.32.pre app/concerns/rao/component/collection_table/batch_actions_concern.rb
rao-component-0.0.31.pre app/concerns/rao/component/collection_table/batch_actions_concern.rb
rao-component-0.0.30.pre app/concerns/rao/component/collection_table/batch_actions_concern.rb
rao-component-0.0.29.pre app/concerns/rao/component/collection_table/batch_actions_concern.rb
rao-component-0.0.28.pre app/concerns/rao/component/collection_table/batch_actions_concern.rb
rao-component-0.0.27.pre app/concerns/rao/component/collection_table/batch_actions_concern.rb
rao-component-0.0.26.pre app/concerns/rao/component/collection_table/batch_actions_concern.rb
rao-component-0.0.25.pre app/concerns/rao/component/collection_table/batch_actions_concern.rb
rao-component-0.0.24.pre app/concerns/rao/component/collection_table/batch_actions_concern.rb