Sha256: e03b7f4b2536356a5d8cf2eeb93f77254b8822f66dafabf019df4a435f01a7a7
Contents?: true
Size: 1.29 KB
Versions: 6
Compression:
Stored size: 1.29 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 :on_test => <<-END_OF_JAVASCRIPT.l, function(){ console.info("this.parent: ", this.getParent()); } END_OF_JAVASCRIPT } end end end end
Version data entries
6 entries across 6 versions & 1 rubygems