Sha256: 2d67310ed92f18ed68e2d4ffa8fa775d29298127adbeecfec4e705a2b692e7bf

Contents?: true

Size: 434 Bytes

Versions: 14

Compression:

Stored size: 434 Bytes

Contents

class SimplePanel < Netzke::Basepack::Panel
  action :update_html

  js_properties :title  => "SimplePanel",
                :html => "Original HTML",
                :bbar => [:update_html.action]

  endpoint :update_html_from_server do |params|
    {:update_body_html => config[:update_text] || "HTML received from server"}
  end

  js_method :on_update_html, <<-JS
    function(){
      this.updateHtmlFromServer();
    }
  JS
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
netzke-basepack-0.7.7 test/basepack_test_app/app/components/simple_panel.rb
netzke-basepack-zh-0.7.6 test/basepack_test_app/app/components/simple_panel.rb
netzke-basepack-0.7.6 test/basepack_test_app/app/components/simple_panel.rb
netzke-basepack-0.7.5 test/basepack_test_app/app/components/simple_panel.rb
netzke-basepack-0.7.4 test/basepack_test_app/app/components/simple_panel.rb
netzke-basepack-0.7.3 test/basepack_test_app/app/components/simple_panel.rb
netzke-basepack-0.7.2 test/basepack_test_app/app/components/simple_panel.rb
netzke-basepack-0.7.1 test/basepack_test_app/app/components/simple_panel.rb
netzke-basepack-0.6.5 test/rails_app/app/components/simple_panel.rb
netzke-basepack-0.7.0 test/rails_app/app/components/simple_panel.rb
netzke-basepack-0.6.4 test/rails_app/app/components/simple_panel.rb
netzke-basepack-0.6.3 test/rails_app/app/components/simple_panel.rb
netzke-basepack-0.6.2 test/rails_app/app/components/simple_panel.rb
netzke-basepack-0.6.1 test/rails_app/app/components/simple_panel.rb