Module: Netzke::GridPanelJs

Included in:
GridPanel
Defined in:
lib/netzke/grid_panel_js.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
# File 'lib/netzke/grid_panel_js.rb', line 3

def self.included(base)
  base.extend ClassMethods
end

Instance Method Details

#js_configObject



7
8
9
10
11
12
13
# File 'lib/netzke/grid_panel_js.rb', line 7

def js_config
  res = super
  res.merge!(:clmns => columns)
  res.merge!(:data_class_name => config[:data_class_name])
  res.merge!(:inline_data => get_data) if ext_config[:load_inline_data]
  res
end