Sha256: 7c035d4396ee38eea4ae31f18a319e54ec62f0dd94f16477e4eaaf4cf190bf6b

Contents?: true

Size: 527 Bytes

Versions: 3

Compression:

Stored size: 527 Bytes

Contents

class Feedback < Netzke::Base
  action :feedback
  action :server_feedback

  def configure(c)
    super
    c.bbar = [:feedback, :server_feedback]
  end

  js_configure do |c|
    c.on_feedback = <<-JS
      function(){
        this.netzkeFeedback('Local feedback'); // uses global delay config
      }
    JS
    c.on_server_feedback = <<-JS
      function(){
        this.serverFeedback();
      }
    JS
  end

  endpoint :server_feedback do |params,this|
    this.netzke_feedback("Server feedback", delay: 3000)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
netzke-core-0.8.4 test/core_test_app/app/components/feedback.rb
netzke-core-0.8.3 test/core_test_app/app/components/feedback.rb
netzke-core-0.8.2 test/core_test_app/app/components/feedback.rb