Roo/bootstrap/Button.js
authorAlan Knowles <alan@roojs.com>
Tue, 22 Jul 2014 09:58:34 +0000 (17:58 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 22 Jul 2014 09:58:34 +0000 (17:58 +0800)
Roo/bootstrap/Button.js

index 4b2d5b9..4626b5d 100644 (file)
@@ -331,10 +331,17 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
     setText : function(str)
     {
         this.el.select('.roo-button-text',true).first().dom.innerHTML = str;
+    },
+    hide: function() {
+       
+        this.el.hide();   
+    },
+    show: function() {
+       
+        this.el.show();   
     }
     
     
-    
 });
 
  
\ No newline at end of file