Sha256: 1a65c39407523fd0b8cdaf7fe6cdca776f56870b7e4121b709563be447516b1f
Contents?: true
Size: 1.01 KB
Versions: 6
Compression:
Stored size: 1.01 KB
Contents
class MultipaneComponentLoader < Netzke::Base js_property :layout, {:type => :hbox, :align => :stretch} js_property :prevent_header, true action :load_server_caller, :handler => :load_handler action :load_component_loader, :handler => :load_handler def default_config super.tap do |c| c[:items] = [{ :title => "Container One", :xtype => :panel, :height => 200, :flex => 1, :border => true, :bbar => [:load_server_caller.action, :load_component_loader.action], :layout => :fit },{ :title => "Container Two", :xtype => :panel, :height => 200, :flex => 1, :layout => :fit }] end end component :server_caller js_method :load_handler, <<-JS function(button){ var container = button.ownerCt.ownerCt; this.loadNetzkeComponent({name: 'server_caller', container: container}); } JS def deliver_component_endpoint(params) sleep 1 # for visual evaluation super end end
Version data entries
6 entries across 6 versions & 1 rubygems