Sha256: ca6f6f5ebdd6af58ada453a0fe81778636551798e58497b5e9b3c9ab8d6198ff

Contents?: true

Size: 583 Bytes

Versions: 1

Compression:

Stored size: 583 Bytes

Contents

class ServerCaller < Netzke::Base
  title "Server Caller!"

  action :bug_server # Actual action's text is set in en.yml

  js_properties(
    :title => "Server Caller",
    :html => "Wow",
    :bbar => [:bug_server.action] # TODO: used to be bbar, but Ext 4.0.2 has problems with rendering it!
  )

  js_method :on_bug_server, <<-JS
    function(){
      this.whatsUp();
      this.update('You should see the response from the server in the title bar the very next moment');
    }
  JS

  endpoint :whats_up do |params|
    {:set_title => "All quiet here on the server"}
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
netzke-core-0.7.4 test/core_test_app/app/components/server_caller.rb