Module: RailsJqGrid::JqGridJsHelper

Included in:
JqGridHelper
Defined in:
app/helpers/rails_jq_grid/jq_grid_js_helper.rb

Constant Summary collapse

JS_BASE =
"/javascripts/rails-jqgrid"

Instance Method Summary collapse

Instance Method Details

#jqgrid_js_tags(options = {}) ⇒ Object

Includes the following javascript libraries:

  • jquery-…min.js

  • jquery.jqGrid.min.js

  • grid.locale-…js

options

:local local to use, default :en



20
21
22
23
24
25
26
27
28
29
# File 'app/helpers/rails_jq_grid/jq_grid_js_helper.rb', line 20

def jqgrid_js_tags(options={})
  ["<!-- JQGRID JS INCLUDES START-->",
   jquery_js_tag,
   jquery_ui_js_tag,
   jqgrid_i18n_js_tag(options),
   jquery_ui_multiselect_js_tag,
   jqgrid_js_tag,
  "<!-- JQGRID JS INCLUDES END -->"
  ].join("\n").html_safe
end