Sha256: 27a6a2778fc4f61ced62c11f7763ed7a4e67c1f3c3f9fd991bd0137397456c21

Contents?: true

Size: 550 Bytes

Versions: 4

Compression:

Stored size: 550 Bytes

Contents

class ExtendedServerCaller < ServerCaller
  title "Extended Server Caller"

  js_method :on_bug_server, <<-JS
    function(){
      this.callParent();
      var bottomBar = this.getDockedItems()[1] || this.getDockedItems()[0]; // Hacky-hacky... better way to surely get the bottom bar?
      bottomBar.add({text: "Added" + " by extended Server Caller"});
    }
  JS

  # Overriding the :whats_up endpoint from ServerCaller
  def whats_up_endpoint(params)
    super.tap do |s|
      s[:set_title] = s[:set_title] + ", shiny weather"
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
netzke-core-0.7.7 test/core_test_app/app/components/extended_server_caller.rb
netzke-core-0.7.6 test/core_test_app/app/components/extended_server_caller.rb
netzke-core-0.7.5 test/core_test_app/app/components/extended_server_caller.rb
netzke-core-0.7.4 test/core_test_app/app/components/extended_server_caller.rb