Sha256: 48a60c658fbc6b6dbabba9a942f65a873a6d5a8b9683ad953f1164cd8e64780f

Contents?: true

Size: 455 Bytes

Versions: 8

Compression:

Stored size: 455 Bytes

Contents

class PluginWithComponents < Netzke::Plugin
  js_method :init, <<-JS
    function(cmp){
      this.cmp = cmp;
      this.cmp.tools = this.cmp.tools || [];
      this.cmp.tools.push({type: 'help', handler: function(){
        var w = this.instantiateChildNetzkeComponent('simple_window');
        w.show();
      }, scope: this});
    }
  JS

  component :simple_window, :width => 300, :height => 200, :title => "Window created by PluginWithComponents"
end

Version data entries

8 entries across 8 versions & 1 rubygems

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