Sha256: 79c30ec642eab084785beafcd2856aa5c5f896a685ffa7e754175d0080b0a866

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 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

1 entries across 1 versions & 1 rubygems

Version Path
netzke-basepack-0.6.0 test/rails_app/app/components/simple_panel.rb