Sha256: e18f72fb8f3e0960823976f345282ba1ce1edbe9e70a18bef8229bdeb8db9ac9

Contents?: true

Size: 907 Bytes

Versions: 5

Compression:

Stored size: 907 Bytes

Contents

class SomeBorderLayout < Netzke::Basepack::BorderLayoutPanel
  js_configure do |c|
    c.on_update_west_region = <<-JS
      function(){
        this.child('component[name="user_grid"]').body.update('Updated West Region Content');
      }
    JS

    c.on_update_center_region = <<-JS
      function(){
        this.child('component[name="role_grid"]').body.update('Updated Center Region Content');
      }
    JS
  end

  def configure(c)
    super
    c.items = [
      {:title => "Who", :class_name => "Netzke::Basepack::Grid", :region => :center, :model => "User", :name => :user_grid},
      {:title => "Item Two", :class_name => "Netzke::Basepack::Grid", :region => :west, :width => 500, :split => true, :collapsible => true, :model => "Role", :name => :role_grid}
    ]
    c.bbar = [:update_center_region, :update_west_region]
  end

  action :update_center_region
  action :update_west_region

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
netzke-basepack-0.8.4 test/basepack_test_app/app/components/some_border_layout.rb
netzke-basepack-0.8.3 test/basepack_test_app/app/components/some_border_layout.rb
netzke-basepack-0.8.2 test/basepack_test_app/app/components/some_border_layout.rb
netzke-basepack-0.8.1 test/basepack_test_app/app/components/some_border_layout.rb
netzke-basepack-0.8.0 test/basepack_test_app/app/components/some_border_layout.rb