Roo/bootstrap/Img.js
authorEdward <edward@roojs.com>
Wed, 16 Apr 2014 06:51:34 +0000 (14:51 +0800)
committerEdward <edward@roojs.com>
Wed, 16 Apr 2014 06:51:34 +0000 (14:51 +0800)
Roo/bootstrap/Img.js

index 165fdf9..d74dac3 100644 (file)
@@ -15,6 +15,7 @@
  * @cfg {String} src image source
  * @cfg {String} alt image alternative text
  * @cfg {String} href a tag href
+ * @cfg {String} target (_self|_blank|_parent|_top) a tag target
  * 
  * @constructor
  * Create a new Input
@@ -41,6 +42,7 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component,  {
     border: '',
     src: '',
     href: false,
+    target: false,
 
     getAutoCreate : function(){
         
@@ -70,6 +72,10 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component,  {
                    cfg
                ]
             }
+            
+            if(this.target){
+                a.target = this.target;
+            }
         }