lib/netzke/property_grid.rb in netzke-basepack-0.1.4.1 vs lib/netzke/property_grid.rb in netzke-basepack-0.2.0
- old
+ new
@@ -8,26 +8,26 @@
def initialize(*args)
super
@config = {:ext_config => {}}.merge(@config)
end
- def js_base_class
+ def self.js_base_class
"Ext.grid.PropertyGrid"
end
def actions
[{
:text => 'Apply', :handler => 'submit'
}]
end
- def js_default_config
+ def self.js_default_config
super.merge({
:bbar => "config.actions".l
})
end
- def js_extend_properties
+ def self.js_extend_properties
{
:submit => <<-JS.l,
function() {
Ext.Ajax.request({
url:this.initialConfig.interface.submitSource,
\ No newline at end of file