Sha256: aa25b018d66bedb775e5649f730eb455f95fb3ed7e3eeb05a53692188a5460e4

Contents?: true

Size: 740 Bytes

Versions: 9

Compression:

Stored size: 740 Bytes

Contents

module Netzke::Core
  # 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.to_s.camelize(:lower)} = Ext.create("#{self.class.client_class_config.class_alias}", #{js_config.netzke_jsonify.to_json});}
    end

    # Rendering
    def js_component_render
      %Q{Netzke.page.#{name.to_s.camelize(:lower)}.render("#{name.to_s.split('_').join('-')}-netzke");} unless self.class.client_class_config.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

9 entries across 9 versions & 1 rubygems

Version Path
netzke-core-6.5.0.0 lib/netzke/core/embedding.rb
netzke-core-6.5.0.0.rc2 lib/netzke/core/embedding.rb
netzke-core-6.5.0.0.rc1 lib/netzke/core/embedding.rb
netzke-core-1.0.1.0 lib/netzke/core/embedding.rb
netzke-core-1.0.0.0 lib/netzke/core/embedding.rb
netzke-core-1.0.0.0.pre4 lib/netzke/core/embedding.rb
netzke-core-1.0.0.0.pre3 lib/netzke/core/embedding.rb
netzke-core-1.0.0.0.pre2 lib/netzke/core/embedding.rb
netzke-core-1.0.0.0.pre lib/netzke/core/embedding.rb