Changed Roo/bootstrap/CardUploader.js
authorAlan Knowles <alan@roojs.com>
Wed, 10 Mar 2021 08:43:50 +0000 (16:43 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 10 Mar 2021 08:43:50 +0000 (16:43 +0800)
Roo/bootstrap/CardUploader.js

index aaf4df7..1ce27b2 100644 (file)
@@ -28,7 +28,26 @@ Roo.bootstrap.CardUploader = function(config){
         return r.data.id
      });
     
-    
+     this.addEvents({
+         // raw events
+        /**
+         * @event view
+         * When a image is clicked on - and needs to display a slideshow or similar..
+         * @param {Roo.bootstrap.Card} this
+         * @param {Roo.bootstrap.Card} The card containing the image data (.data is a property with image info.)
+         *
+         */
+        'view' : true,
+         /**
+         * @event download
+         * When a the download link is clicked
+         * @param {Roo.bootstrap.Card} this
+         * @param {Roo.bootstrap.Card} The card containing the image data (.data is a property with image info.)
+         */
+        'download' : true
+        
+    });
+};
 };
 
 Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Input,  {