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