Roo/bootstrap/Button.js
[roojs1] / 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() {