Sha256: 57ee7b36ff86cd316bdd630e83a28102c7407b92457ea26ab8b35c02bbdf2eea
Contents?: true
Size: 753 Bytes
Versions: 8
Compression:
Stored size: 753 Bytes
Contents
class SomePlugin < Netzke::Plugin action :action_one js_method :init, <<-JS function(){ this.callParent(arguments); this.cmp.tools = [{id: 'gear', handler: this.onGear, scope: this}]; this.cmp.addDocked({ dock: 'bottom', xtype: 'toolbar', items: [this.actions.actionOne] }); } JS js_method :on_action_one, <<-JS function(){ this.cmp.setTitle('Action one ' + 'triggered'); } JS js_method :on_gear, <<-JS function(){ this.processGear(); } JS js_method :process_gear_callback, <<-JS function(newTitle){ this.cmp.setTitle(newTitle); } JS endpoint :process_gear do |params| {:process_gear_callback => "Server response"} end end
Version data entries
8 entries across 8 versions & 1 rubygems