Netzke::Embedding

The following methods are used when a component is generated stand-alone (as a part of a HTML page)

Public Instance Methods

js_component_html() click to toggle source

Container for rendering

# File lib/netzke/embedding.rb, line 16
def js_component_html
  %{<div id="#{name.to_s.split('_').join('-')}-netzke" class="netzke-component"></div>}
end
js_component_instance() click to toggle source

Instantiating

# File lib/netzke/embedding.rb, line 6
def js_component_instance
  %{Netzke.page.#{name.jsonify} = Ext.create("#{self.class.js_alias}", #{js_config.to_nifty_json});}
end
js_component_render() click to toggle source

Rendering

# File lib/netzke/embedding.rb, line 11
def js_component_render
  %{Netzke.page.#{name.jsonify}.render("#{name.to_s.split('_').join('-')}-netzke");} unless self.class.js_xtype == "netzkewindow"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.