Sha256: c8f4b9eb5f064b5745667d7125bcd499878b2372532f4779b503411da2e0759a
Contents?: true
Size: 1.04 KB
Versions: 8
Compression:
Stored size: 1.04 KB
Contents
module Netzke # = Wrapper # # Simple Ext.Panel with layout 'fit' that wraps up another Netzke widget. Can be useful in HTML pages where # a widget should be dynamically configured, to not reload the entire page after configuration (Wrapper # will reload the widget automatically). # # == Configuration # * <tt>:item</tt> - configuration hash for wrapped widget # # Example: # # netzke :wrapper, :item => { # :class_name => "FormPanel", # :model => "User" # } class Wrapper < Base def self.js_extend_properties super.merge({ :layout => 'fit', # invisible :header => false, :border => false, :init_component => <<-END_OF_JAVASCRIPT.l, function(){ #{js_full_class_name}.superclass.initComponent.call(this); // instantiate the item this.instantiateChild(this.itemConfig); } END_OF_JAVASCRIPT }) end def initial_aggregatees {:item => config[:item]} end end end
Version data entries
8 entries across 8 versions & 1 rubygems