Sha256: 41fce7c9f879cf93e3b99b7ab777fc709a44fb28b3367446d3c8b211a6aac243

Contents?: true

Size: 916 Bytes

Versions: 2

Compression:

Stored size: 916 Bytes

Contents

#  This program is free software; you can redistribute it and/or
#  modify it under the terms of the GNU General Public License
#  as published by the Free Software Foundation; either version 3
#  of the License, or (at your option) any later version.

#  Author::    Dieter Spaeth  (mailto:dieter.spaeth@gmx.de)
#  Copyright:: Copyright (c) 2010 Dieter Spaeth


require 'rails_jq_grid/jq_grid'

module RailsJqGrid
  JQUERY_VERSION    = "1.4.2"
  JQUERY_UI_VERSION = "1.8.4"

  module JqGridHelper        

    include JqGridJsHelper
    include JqGridCssHelper    

    # Creates javascript-code for jqGrid
    def jqgrid(title, dom_id, url_for_options, options={}, &option_block)
      if url_for_options.is_a?(Hash)
        url_for_options[:controller]||=controller.controller_name
      end
      ::RailsJqGrid::JqGrid.new(title, dom_id, url_for_options, options, &option_block).to_html
    end

    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_jq_grid-0.0.3 app/helpers/rails_jq_grid/jq_grid_helper.rb
rails_jq_grid-0.0.3.pre2 app/helpers/rails_jq_grid/jq_grid_helper.rb