Roo.ContentPanel add @event 'render', fired after rendering of content panel
authorAlan Knowles <alan@akbkhome.com>
Tue, 16 Aug 2011 11:22:10 +0000 (11:22 +0000)
committerAlan Knowles <alan@akbkhome.com>
Wed, 7 Sep 2011 02:36:44 +0000 (10:36 +0800)
Roo/ContentPanel.js

index a5dc852..264befb 100644 (file)
@@ -107,7 +107,17 @@ Roo.ContentPanel = function(el, config, content){
          * @param {Number} width The width after any component adjustments
          * @param {Number} height The height after any component adjustments
          */
-        "resize" : true
+        "resize" : true,
+        
+         /**
+         * @event render
+         * Fires when this tab is created
+         * @param {Roo.ContentPanel} this
+         */
+        "render" : true
+        
+        
+        
     });
     if(this.autoScroll){
         this.resizeEl.setStyle("overflow", "auto");
@@ -129,6 +139,8 @@ Roo.ContentPanel = function(el, config, content){
     
     
     Roo.ContentPanel.superclass.constructor.call(this);
+    
+    this.fireEvent('render', this);
 };
 
 Roo.extend(Roo.ContentPanel, Roo.util.Observable, {