Sha256: 25deb27c69e6aa8b5fb162d9c57cd8d50b42e736c65c4138212479a5d94b564f

Contents?: true

Size: 601 Bytes

Versions: 8

Compression:

Stored size: 601 Bytes

Contents

# frozen_string_literal: true

module EacRailsUtils
  module DataTableHelper
    class Setup
      attr_reader :columns
      attr_accessor :paging

      def initialize
        @columns = [] # rubocop:disable Rails/HelperInstanceVariable
        @paging = true # rubocop:disable Rails/HelperInstanceVariable
      end

      # @return [EacRailsUtils::DataTableHelper::Column]
      def column(*args, &block)
        column = ::EacRailsUtils::DataTableHelper::Column.new(args, block)
        @columns << column # rubocop:disable Rails/HelperInstanceVariable
        column
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
eac_rails_utils-0.25.0 app/helpers/eac_rails_utils/data_table_helper/setup.rb
eac_rails_utils-0.24.0 app/helpers/eac_rails_utils/data_table_helper/setup.rb
eac_rails_utils-0.23.4 app/helpers/eac_rails_utils/data_table_helper/setup.rb
eac_rails_utils-0.23.3 app/helpers/eac_rails_utils/data_table_helper/setup.rb
eac_rails_utils-0.23.2 app/helpers/eac_rails_utils/data_table_helper/setup.rb
eac_rails_utils-0.23.1 app/helpers/eac_rails_utils/data_table_helper/setup.rb
eac_rails_utils-0.23.0 app/helpers/eac_rails_utils/data_table_helper/setup.rb
eac_rails_utils-0.22.3 app/helpers/eac_rails_utils/data_table_helper/setup.rb