Sha256: b093986ca8696aadae2105ea78cb30bdc7af1f0da8f0b433e644ac02164cea9c
Contents?: true
Size: 914 Bytes
Versions: 9
Compression:
Stored size: 914 Bytes
Contents
class SomeBorderLayout < Netzke::Basepack::BorderLayoutPanel def configuration super.merge( :items => [ {:title => "Who", :class_name => "Basepack::GridPanel", :region => :center, :model => "User", :name => :user_grid}, {:title => "Item Two", :class_name => "Basepack::GridPanel", :region => :west, :width => 500, :split => true, :collapsible => true, :model => "Role", :name => :role_grid} ] ) end js_property :bbar, [:update_center_region.action, :update_west_region.action] action :update_center_region action :update_west_region js_method :on_update_west_region, <<-JS function(){ this.child('component[name="user_grid"]').body.update('Updated West Region Content'); } JS js_method :on_update_center_region, <<-JS function(){ this.child('component[name="role_grid"]').body.update('Updated Center Region Content'); } JS end
Version data entries
9 entries across 9 versions & 2 rubygems