Sha256: 5948dee61f21d6a1387a1d266200a85ab5f727448c5c282f2308e949133914e5
Contents?: true
Size: 640 Bytes
Versions: 3
Compression:
Stored size: 640 Bytes
Contents
module Netzke # The following methods are used when a component is generated stand-alone (as a part of a HTML page) module Embedding # Instantiating def js_component_instance %Q{Netzke.page.#{name.jsonify} = Ext.create(#{js_config.to_nifty_json});} end # Rendering def js_component_render %Q{Netzke.page.#{name.jsonify}.render("#{name.to_s.split('_').join('-')}-netzke");} unless self.class.js_xtype == "netzkewindow" end # Container for rendering def js_component_html %Q{<div id="#{name.to_s.split('_').join('-')}-netzke" class="netzke-component"></div>} end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
netzke-core-0.6.2 | lib/netzke/embedding.rb |
netzke-core-0.6.1 | lib/netzke/embedding.rb |
netzke-core-0.6.0 | lib/netzke/embedding.rb |