Sha256: 38a84ddc951c19bb0fc7a5082d538abf514fd2e2ba6b45f2bb36592fca63ba84

Contents?: true

Size: 862 Bytes

Versions: 8

Compression:

Stored size: 862 Bytes

Contents

# Here the child component some_window gets declared with items being Netzke components in their turn
class ComponentWithNestedThrough < Netzke::Base
  js_property :layout, :fit
  js_property :border, true

  js_method :init_component, <<-JS
    function(){
      this.tools = [{type: 'gear', handler: this.onGear, scope: this}];
      this.callParent();
    }
  JS

  component :some_window, :class_name => "SimpleWindow", :width => 500, :layout => :fit, :modal => true,
            :items => [{
              :class_name => "SimpleTabPanel",
              :prevent_header => true,
              :items => [{:class_name => "ServerCaller"}, {:class_name => "ExtendedServerCaller"}]
            }]

  js_method :on_gear, <<-JS
    function(){
      this.loadNetzkeComponent({name: 'some_window', callback: function(w){
        w.show();
      }});
    }
  JS

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
netzke-core-0.7.7 test/core_test_app/app/components/component_with_nested_through.rb
netzke-core-0.7.6 test/core_test_app/app/components/component_with_nested_through.rb
netzke-core-0.7.5 test/core_test_app/app/components/component_with_nested_through.rb
netzke-core-0.7.4 test/core_test_app/app/components/component_with_nested_through.rb
netzke-core-0.7.3 test/core_test_app/app/components/component_with_nested_through.rb
netzke-core-0.7.2 test/core_test_app/app/components/component_with_nested_through.rb
netzke-core-0.7.1 test/rails_app/app/components/component_with_nested_through.rb
netzke-core-0.7.0 test/rails_app/app/components/component_with_nested_through.rb