Sha256: 023d0b45b04f7b0d6882ce2ea8da02982e69f18f701b510540a4d1f68384eb27
Contents?: true
Size: 429 Bytes
Versions: 3
Compression:
Stored size: 429 Bytes
Contents
# For demo purposes. Not used for testing. class SelfReloading < Netzke::Base action :reload def configure(c) super c.bbar = [:reload] end def js_configure(c) super state[:loaded_times] ||= 0 state[:loaded_times] += 1 c.title = "Loaded #{state[:loaded_times]} time(s)" end js_configure do |c| c.on_reload = <<-JS function(){ this.netzkeReload(); } JS end end
Version data entries
3 entries across 3 versions & 1 rubygems