Roo/bootstrap/Button.js
authorAlan Knowles <alan@roojs.com>
Fri, 16 May 2014 08:12:04 +0000 (16:12 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 16 May 2014 08:12:04 +0000 (16:12 +0800)
Roo/bootstrap/Button.js

index 6a19e08..84273b6 100644 (file)
@@ -302,7 +302,11 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
         this.disabled = true;
         this.el.addClass('disabled');
     },
-    
+    toggle : function(v) {
+        this[v ? 'enable' : 'disable']();
+        
+        
+    }
 });
 
  
\ No newline at end of file