Sha256: 826ae1044e18149c6b4dd5996e297ac11a5b37530494dbcebf9601662a4fc070

Contents?: true

Size: 362 Bytes

Versions: 12

Compression:

Stored size: 362 Bytes

Contents

# frozen_string_literal: true
module Eac
  module DataTableHelper
    class Setup
      attr_reader :columns
      attr_accessor :paging

      def initialize
        @columns = []
        @paging = true
      end

      def column(label, path = nil, &block)
        @columns << ::Eac::DataTableHelper::Column.new(label, path, block)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
eac_rails_utils-0.8.0 lib/eac/data_table_helper/setup.rb
eac_rails_utils-0.7.1 lib/eac/data_table_helper/setup.rb
eac_rails_utils-0.7.0 lib/eac/data_table_helper/setup.rb
eac_rails_utils-0.6.0 lib/eac/data_table_helper/setup.rb
eac_rails_utils-0.5.0 lib/eac/data_table_helper/setup.rb
eac_rails_utils-0.4.0 lib/eac/data_table_helper/setup.rb
eac_rails_utils-0.3.0 lib/eac/data_table_helper/setup.rb
eac_rails_utils-0.2.2 lib/eac/data_table_helper/setup.rb
eac_rails_utils-0.2.1 lib/eac/data_table_helper/setup.rb
eac_rails_utils-0.2.0 lib/eac/data_table_helper/setup.rb
eac_rails_utils-0.1.15 lib/eac/data_table_helper/setup.rb
eac_rails_utils-0.1.14 lib/eac/data_table_helper/setup.rb