Sha256: 71970d2595165d3aa43bac127fc070590fb1d9122b2123a6368c2479af1b23ec

Contents?: true

Size: 512 Bytes

Versions: 4

Compression:

Stored size: 512 Bytes

Contents

class ExtendedServerCaller < ServerCaller
  js_properties :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

  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.3 test/core_test_app/app/components/extended_server_caller.rb
netzke-core-0.7.2 test/core_test_app/app/components/extended_server_caller.rb
netzke-core-0.7.1 test/rails_app/app/components/extended_server_caller.rb
netzke-core-0.7.0 test/rails_app/app/components/extended_server_caller.rb