Roo/bootstrap/Component.js
authorAlan Knowles <alan@roojs.com>
Wed, 2 Dec 2015 02:54:35 +0000 (10:54 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 2 Dec 2015 02:54:35 +0000 (10:54 +0800)
Roo/bootstrap/Component.js

index 7d426f2..cbdcdb7 100644 (file)
@@ -340,9 +340,19 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
         this.fireEvent('childrenrendered', this);
         
         return cn;
-    } 
-    
+    },
     
+    show : function()
+    {
+        this.el.removeClass('hidden');
+    },
+    hide: function()
+    {
+        if (!this.el.hasClass('hidden')) {
+            this.el.addClass('hidden');
+        }
+        
+    }
 });
 
  
\ No newline at end of file