Roo/bootstrap/Card.js
authorAlan Knowles <alan@roojs.com>
Wed, 7 Apr 2021 09:26:45 +0000 (17:26 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 7 Apr 2021 09:26:45 +0000 (17:26 +0800)
Roo/bootstrap/Card.js

index a05abee..13dee84 100644 (file)
@@ -80,11 +80,18 @@ Roo.bootstrap.Card = function(config){
          /**
          * @event rotate
          * When a element a card is rotate
-         * @param {Roo.bootstrap.Element} this
+         * @param {Roo.bootstrap.Card} this
          * @param {Roo.Element} n the node being dropped?
          * @param {Boolean} rotate status
          */
-        'rotate' : true
+        'rotate' : true,
+        /**
+         * @event cardover
+         * When a card element is dragged over ready to drop
+         * @param {Roo.bootstrap.Card} this
+         * @param {Object} data from dragdrop 
+         */
+        
         
     });
 };
@@ -542,8 +549,8 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component,  {
         Roo.log(['getTargetFromEvent', target_info ]);
         
         
-        if (this.fireEvent('cardover', data) === false) {
-            return;
+        if (this.fireEvent('cardover', this, [ data ]) === false) {
+            return false;
         }
         
         this.dropPlaceHolder('show', target_info,data);