Sha256: 22a0fada4a571276f73d1b80519be32b271e790ae1e8fb53f589ab351da0f096
Contents?: true
Size: 594 Bytes
Versions: 2
Compression:
Stored size: 594 Bytes
Contents
class ComponentWithSessionPersistence < Netzke::Base js_property :title, "No Title (yet!)" js_property :bbar, [{:text => "Tell server to store new title", :ref => "../button"}] config :default, :session_persistence => true js_method :bug_server, <<-JS function(){ this.whatsUp(); } JS js_method :init_component, <<-JS function(){ #{js_full_class_name}.superclass.initComponent.call(this); this.button.on('click', this.bugServer, this); } JS endpoint :whats_up do |params| update_session_options(:title => "New Title!") {} end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
netzke-core-0.6.4 | test/rails_app/app/components/component_with_session_persistence.rb |
netzke-core-0.6.3 | test/rails_app/app/components/component_with_session_persistence.rb |