Roo/bootstrap/Button.js
authorEdward <edward@roojs.com>
Tue, 15 Apr 2014 10:51:08 +0000 (18:51 +0800)
committerEdward <edward@roojs.com>
Tue, 15 Apr 2014 10:51:08 +0000 (18:51 +0800)
Roo/bootstrap/Button.js

index 08d95c9..6c5a8a6 100644 (file)
@@ -65,9 +65,10 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
     ontext: 'ON',
     offtext: 'OFF',
     defaulton: true,
-    preventDefault : true,
-    removeClass : false,
-    name : false,
+    preventDefault: true,
+    removeClass: false,
+    name: false,
+    target: false,
     
     getAutoCreate : function(){
         
@@ -238,6 +239,10 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
             cfg.cls = '';
         }
         
+        if(this.target){
+            cfg.target = this.target;
+        }
+        
         return cfg;
     },
     initEvents: function() {