Sha256: 42dfa494d78fd2e1e5518522781756b6f1a0948244571ba79940ddd241409d05

Contents?: true

Size: 617 Bytes

Versions: 5

Compression:

Stored size: 617 Bytes

Contents

class WindowComponentLoader < Netzke::Base
  component :some_window, {
    :persistence => true,
    :class_name => "Netzke::Basepack::Window",
    :title => "Some Window Component",
    :lazy_loading => true,
    :width => 400,
    :height => 300,
    :modal => true,
    :items => [{
      :class_name => "Netzke::Basepack::GridPanel",
      :model => "User"
    }]
  }

  action :load_window

  js_property :bbar, [:load_window.action]

  js_method :on_load_window, <<-JS
    function(params){
      this.loadNetzkeComponent({name: "some_window", callback: function(w){
        w.show();
      }});
    }
  JS
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
netzke-basepack-0.7.7 test/basepack_test_app/app/components/window_component_loader.rb
netzke-basepack-zh-0.7.6 test/basepack_test_app/app/components/window_component_loader.rb
netzke-basepack-0.7.6 test/basepack_test_app/app/components/window_component_loader.rb
netzke-basepack-0.7.5 test/basepack_test_app/app/components/window_component_loader.rb
netzke-basepack-0.7.4 test/basepack_test_app/app/components/window_component_loader.rb