Sha256: 2302110f4194293d7594e687a065a637e7ca29edaaae9fdec4f9bf3f63f84759
Contents?: true
Size: 632 Bytes
Versions: 5
Compression:
Stored size: 632 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
5 entries across 5 versions & 1 rubygems