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

Roo/bootstrap/CardUploader.js
roojs-bootstrap-debug.js

index 3b6476c..142cf14 100644 (file)
@@ -231,7 +231,7 @@ Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Input,  {
           mimetype : file.type,
           preview : false,
           is_deleted : 0
-          
+          .. any other data...
         }
      *
      * 
index 0813956..8e9c162 100644 (file)
@@ -12507,7 +12507,7 @@ Roo.bootstrap.CardUploader = function(config){
          * @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.)
+         * @param {Object} The image information data 
          *
          */
         'view' : true,
@@ -12515,7 +12515,7 @@ Roo.bootstrap.CardUploader = function(config){
          * @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.)
+         * @param {Object} The image information data  contains 
          */
         'download' : true
         
@@ -12691,6 +12691,25 @@ Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Input,  {
         
     },
     
+    /**
+     * addCard - add an Attachment to the uploader
+     * @param data - the data about the image to upload
+     *
+     * {
+          id : 123
+          title : "Title of file",
+          is_uploaded : false,
+          src : "http://.....",
+          srcfile : { the File upload object },
+          mimetype : file.type,
+          preview : false,
+          is_deleted : 0
+          
+        }
+     *
+     * 
+    */
+    
     addCard : function (data)
     {
         // hidden input element?