Module: RailsJqGrid::JqGridHelper
- Includes:
- JqGridCssHelper, JqGridJsHelper
- Defined in:
- app/helpers/rails_jq_grid/jq_grid_helper.rb
Constant Summary
Constants included from JqGridCssHelper
RailsJqGrid::JqGridCssHelper::JQUERY_UI_THEMES_BASE, RailsJqGrid::JqGridCssHelper::STYLESHEETS_BASE
Constants included from JqGridJsHelper
RailsJqGrid::JqGridJsHelper::JS_BASE
Instance Method Summary collapse
-
#jqgrid(title, dom_id, url_for_options, options = {}, &option_block) ⇒ Object
Creates javascript-code for jqGrid.
Methods included from JqGridCssHelper
Methods included from JqGridJsHelper
Instance Method Details
#jqgrid(title, dom_id, url_for_options, options = {}, &option_block) ⇒ Object
Creates javascript-code for jqGrid
23 24 25 26 27 28 |
# File 'app/helpers/rails_jq_grid/jq_grid_helper.rb', line 23 def jqgrid(title, dom_id, , ={}, &option_block) if .is_a?(Hash) [:controller]||=controller.controller_name end ::RailsJqGrid::JqGrid.new(title, dom_id, , , &option_block).to_html end |