Sha256: fd2c75fc39ab0180f46bc403244e7a24eb758ece83d42194050af0109893e31e
Contents?: true
Size: 600 Bytes
Versions: 3
Compression:
Stored size: 600 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
3 entries across 3 versions & 1 rubygems