Sha256: 7121fc3e80027616a914a86412d8a2a8faf122055546a1ba350d624e4a1cfbe2

Contents?: true

Size: 1.62 KB

Versions: 1

Compression:

Stored size: 1.62 KB

Contents

{
  title: "Component Loader",
  layout: "fit",

  onLoadComponent: function(){
    this.netzkeLoadComponent('simple_component');
  },

  onLoadWithFeedback: function(){
    this.netzkeLoadComponent('simple_component', {callback: function() { this.setTitle("Callback" + " invoked!"); }, scope: this});
  },

  onLoadWindowWithSimpleComponent: function(params){
    this.netzkeLoadComponent('window_with_simple_component', {callback: function(w){ w.show(); }});
  },

  onLoadComposite: function(params){
    this.netzkeLoadComponent('some_composite');
  },

  onLoadWithParams: function(params){
    this.netzkeLoadComponent("simple_component", {clientConfig: {title: "Simple Component with modified title"}, container: this});
  },

  onNonExistingComponent: function(){
    this.netzkeLoadComponent('non_existing_component');
  },

  onLoadInWindow: function(){
    var w = new Ext.window.Window({
      width: 500, height: 400, modal: false, layout:'fit', title: 'A window'
    });
    w.show();
    this.netzkeLoadComponent('component_loaded_in_window', {container: w});
  },

  onInaccessible: function() {
    this.netzkeLoadComponent('inaccessible');
  },

  onConfigOnly: function() {
    this.netzkeLoadComponent('simple_component', {configOnly: true, callback: function(config) {
      this.removeAll();
      config.title = config.title + " (overridden)";
      var instance = Ext.ComponentManager.create(config);
      this.add(instance);
    }, scope: this});
  },

  onLoadSelfReloading: function() {
    this.netzkeLoadComponent('self_reloading');
  },

  onLoadCssInclusion: function() {
    this.netzkeLoadComponent('css_inclusion');
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
netzke-core-0.8.4 test/core_test_app/app/components/dynamic_loading/javascripts/dynamic_loading.js