Sha256: 0894533fcd834382d876f76f837e62c5471e437d6e0669bc35f99fa5910bf85b
Contents?: true
Size: 609 Bytes
Versions: 5
Compression:
Stored size: 609 Bytes
Contents
module ExtDirect class Selector < Netzke::Base js_configure do |c| c.extend = "Ext.FormPanel" c.body_padding = 5 c.init_component = <<-JS function(){ this.callParent(); this.addEvents('userupdate'); } JS c.on_update = <<-JS function(){ this.fireEvent('userupdate', this.getForm().findField('user').getValue()); } JS end action :update def configure(c) super c.items = [{:name => "user", :field_label => "User", :xtype => :textfield}] c.bbar = [:update] end end end
Version data entries
5 entries across 5 versions & 1 rubygems