Sha256: f4b8df3563fa27afb7dc5f390345ee01393a2def47f92d6c7ded82cc13f87ad6

Contents?: true

Size: 342 Bytes

Versions: 3

Compression:

Stored size: 342 Bytes

Contents

# frozen_string_literal: true

module EasyDataTables
  # Creates and exposes the helper method
  module TableHelper
    def easy_data_table(columns, label, grouping)
      data_table = DataTable.new(
        columns,
        label,
        grouping
      )
      render 'easy_data_tables/data_table', data_table: data_table
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
easy_data_tables-0.3.1 app/helpers/easy_data_tables/table_helper.rb
easy_data_tables-0.3.0 app/helpers/easy_data_tables/table_helper.rb
easy_data_tables-0.2.0 app/helpers/easy_data_tables/table_helper.rb