Sha256: 5c1b60f8636129ff39040c3e96f397840c3bfccbf7a2df64cedb35a4950adcc7

Contents?: true

Size: 660 Bytes

Versions: 10

Compression:

Stored size: 660 Bytes

Contents

module ExtDirect
  class Selector < Netzke::Base
    js_base_class "Ext.FormPanel"

    js_property :padding, 5

    action :update

    def configuration
      super.merge({
        :items => [{:name => "user", :field_label => "User", :xtype => :textfield}],
        :bbar => [:update.action]
      })
    end

    js_method :init_component, <<-JS
      function(){
        Netzke.classes.ExtDirect.Selector.superclass.initComponent.call(this);
        this.addEvents('userupdate');
      }
    JS


    js_method :on_update, <<-JS
      function(){
        this.fireEvent('userupdate', this.getForm().findField('user').getValue());
      }
    JS

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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