Sha256: f38831b1521ea9a59f146dd2c271b62878915031809b4d172389f5989954de03

Contents?: true

Size: 562 Bytes

Versions: 11

Compression:

Stored size: 562 Bytes

Contents

module Touch
  class HelloWorldComponent < Netzke::Base
    js_base_class "Ext.Panel"

    def configuration
      super.merge({
        :docked_items => [{:dock => :top, :xtype => :toolbar, :title => 'Hello World Component',
          :items => [
            {:text => "Greet the World", :handler => :on_bug_server}
          ]
        }]
      })
    end

    js_method :on_bug_server, <<-JS
      function(){
        this.greetTheWorld();
      }
    JS

    endpoint :greet_the_world do |params|
      {:update => "Hello from the server!"}
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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