Sha256: 850e13940d33972e0d5dc67860b231ba922891b761dcf158959f60eb552cf3d3
Contents?: true
Size: 498 Bytes
Versions: 3
Compression:
Stored size: 498 Bytes
Contents
class PluginWithActions < Netzke::Plugin action :update_title js_configure do |c| c.init = <<-JS function(){ this.callParent(arguments); // add a button to parent's toolbar this.cmp.addDocked({ dock: 'bottom', xtype: 'toolbar', items: [this.actions.updateTitle] }); } JS c.on_update_title = <<-JS function(){ this.cmp.setTitle('Title updated by PluginWithActions'); } JS end end
Version data entries
3 entries across 3 versions & 1 rubygems