Sha256: 385c642f710685be7419cbce3a3012d70b1ac606a40eba57c22c80585ec4b82e
Contents?: true
Size: 1.06 KB
Versions: 7
Compression:
Stored size: 1.06 KB
Contents
module Netzke module Basepack class GridPanel < Netzke::Base class RecordFormWindow < Window js_properties :button_align => :right, :width => 400, :auto_height => true, :modal => true, :fbar => [:ok.action, :cancel.action] action :ok do { :text => I18n.t('netzke.basepack.grid_panel.record_form_window.actions.ok')} end action :cancel do { :text => I18n.t('netzke.basepack.grid_panel.record_form_window.actions.cancel')} end js_method :init_component, <<-JS function(params){ this.callParent(); this.items.first().on("submitsuccess", function(){ this.closeRes = "ok"; this.close(); }, this); } JS js_method :on_ok, <<-JS function(params){ this.items.first().onApply(); } JS js_method :on_cancel, <<-JS function(params){ this.close(); } JS end end end end
Version data entries
7 entries across 7 versions & 2 rubygems