Sha256: b7f6f4c3a272c33db32c6c4cdab1e5d1614fe4222e4af8805cda72ea014e8cf9
Contents?: true
Size: 1.11 KB
Versions: 3
Compression:
Stored size: 1.11 KB
Contents
module Netzke class GridPanel < Base class RecordFormWindow < Window def initial_config super.deep_merge({ :ext_config => { :modal => true, :width => "60%", :height => "90%", :fbar => [:ok, :cancel] } }) end def self.js_extend_properties { :button_align => "right", :init_component => <<-END_OF_JAVASCRIPT.l, function(){ #{js_full_class_name}.superclass.initComponent.call(this); this.getWidget().on("submitsuccess", function(){this.closeRes = "ok"; this.close();}, this); } END_OF_JAVASCRIPT :on_ok => <<-END_OF_JAVASCRIPT.l, function(){ this.getWidget().onApply(); // this.closeRes = "ok", // this.close(); } END_OF_JAVASCRIPT :on_cancel => <<-END_OF_JAVASCRIPT.l, function(){ this.close(); } END_OF_JAVASCRIPT } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems