Sha256: 1a342e41db5b051d7e8fca2d54a0ca1c818ee580aa71b4badecbe8b7560e9b78

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

class SomeBorderLayout < Netzke::Basepack::BorderLayoutPanel
  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, :collapsible => true, :model => "Role", :name => :role_grid}
          ],
          :bbar => [:update_center_region.action, :update_west_region.action]

  action :update_center_region
  action :update_west_region
  
  # config :default, :persistence => true

  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

2 entries across 2 versions & 1 rubygems

Version Path
netzke-basepack-0.6.2 test/rails_app/app/components/some_border_layout.rb
netzke-basepack-0.6.1 test/rails_app/app/components/some_border_layout.rb