Roo/bootstrap/Img.js
authorAlan Knowles <alan@roojs.com>
Fri, 1 Sep 2017 05:15:53 +0000 (13:15 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 1 Sep 2017 05:15:53 +0000 (13:15 +0800)
Roo/bootstrap/Img.js

index d0723fa..f7536fa 100644 (file)
@@ -168,7 +168,14 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component,  {
     {
         Roo.log('img onclick');
         this.fireEvent('click', this, e);
+    },
+    
+    setSrc : function(url)
+    {
+        this.el.dom.src =  url;
     }
+    
+    
    
 });