X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..refs/heads/master:/docs/source/DropTarget.html diff --git a/docs/source/DropTarget.html b/docs/source/DropTarget.html index de9cd536..07055094 100644 --- a/docs/source/DropTarget.html +++ b/docs/source/DropTarget.html @@ -1,16 +1,35 @@ -Sencha Documentation Project
/**
- * @class Ext.dd.DropTarget
+
+
+
+  
+  The source code
+  
+  
+  
+  
+
+
+  
/**
+ * @class Ext.dd.DropTarget
  * @extends Ext.dd.DDTarget
  * A simple class that provides the basic implementation needed to make any element a drop target that can have
  * draggable items dropped onto it.  The drop has no effect until an implementation of notifyDrop is provided.
- * @constructor
- * @param {Mixed} el The container element
- * @param {Object} config
  */
 Ext.define('Ext.dd.DropTarget', {
     extend: 'Ext.dd.DDTarget',
     requires: ['Ext.dd.ScrollManager'],
 
+    /**
+     * Creates new DropTarget.
+     * @param {String/HTMLElement/Ext.Element} el The container element or ID of it.
+     * @param {Object} config
+     */
     constructor : function(el, config){
         this.el = Ext.get(el);
 
@@ -24,23 +43,23 @@ Ext.define('Ext.dd.DropTarget', {
               {isTarget: true}]);
     },
 
-    /**
+    /**
      * @cfg {String} ddGroup
      * A named drag drop group to which this object belongs.  If a group is specified, then this object will only
-     * interact with other drag drop objects in the same group (defaults to undefined).
+     * interact with other drag drop objects in the same group.
      */
-    /**
-     * @cfg {String} overClass
-     * The CSS class applied to the drop target element while the drag source is over it (defaults to "").
+    /**
+     * @cfg {String} [overClass=""]
+     * The CSS class applied to the drop target element while the drag source is over it.
      */
-    /**
-     * @cfg {String} dropAllowed
-     * The CSS class returned to the drag source when drop is allowed (defaults to "x-dd-drop-ok").
+    /**
+     * @cfg {String} [dropAllowed="x-dd-drop-ok"]
+     * The CSS class returned to the drag source when drop is allowed.
      */
     dropAllowed : Ext.baseCSSPrefix + 'dd-drop-ok',
-    /**
-     * @cfg {String} dropNotAllowed
-     * The CSS class returned to the drag source when drop is not allowed (defaults to "x-dd-drop-nodrop").
+    /**
+     * @cfg {String} [dropNotAllowed="x-dd-drop-nodrop"]
+     * The CSS class returned to the drag source when drop is not allowed.
      */
     dropNotAllowed : Ext.baseCSSPrefix + 'dd-drop-nodrop',
 
@@ -50,7 +69,7 @@ Ext.define('Ext.dd.DropTarget', {
     // private
     isNotifyTarget : true,
 
-    /**
+    /**
      * The function a {@link Ext.dd.DragSource} calls once to notify this drop target that the source is now over the
      * target.  This default implementation adds the CSS class specified by overClass (if any) to the drop element
      * and returns the dropAllowed config value.  This method should be overridden if drop validation is required.
@@ -67,7 +86,7 @@ Ext.define('Ext.dd.DropTarget', {
         return this.dropAllowed;
     },
 
-    /**
+    /**
      * The function a {@link Ext.dd.DragSource} calls continuously while it is being dragged over the target.
      * This method will be called on every mouse movement while the drag source is over the drop target.
      * This default implementation simply returns the dropAllowed config value.
@@ -81,7 +100,7 @@ Ext.define('Ext.dd.DropTarget', {
         return this.dropAllowed;
     },
 
-    /**
+    /**
      * The function a {@link Ext.dd.DragSource} calls once to notify this drop target that the source has been dragged
      * out of the target without dropping.  This default implementation simply removes the CSS class specified by
      * overClass (if any) from the drop element.
@@ -95,7 +114,7 @@ Ext.define('Ext.dd.DropTarget', {
         }
     },
 
-    /**
+    /**
      * The function a {@link Ext.dd.DragSource} calls once to notify this drop target that the dragged item has
      * been dropped on it.  This method has no default implementation and returns false, so you must provide an
      * implementation that does something to process the drop event and returns true so that the drag source's
@@ -116,4 +135,6 @@ Ext.define('Ext.dd.DropTarget', {
         }
     }
 });
-
\ No newline at end of file +
+ +