Sha256: b6f975c98f7c2840521e8cb0eacf5a34440061d75040343089d48ad80a386e49
Contents?: true
Size: 819 Bytes
Versions: 1
Compression:
Stored size: 819 Bytes
Contents
class SomeBorderLayout < Netzke::Basepack::BorderLayoutPanel def config { :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, :model => "Role", :name => :role_grid} ], :bbar => [:update_center_region.action, :update_west_region.action] }.deep_merge(super) end js_method :on_update_west_region, <<-JS function(){ this.getChildComponent('user_grid').body.update('Updated West Region Content'); } JS js_method :on_update_center_region, <<-JS function(){ this.getChildComponent('role_grid').body.update('Updated Center Region Content'); } JS end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
netzke-basepack-0.6.0 | test/rails_app/app/components/some_border_layout.rb |