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.
Config Options
|
| ddGroup : StringA named drag drop group to which this object belongs. If a group is specified, then this object will only
+interact w... 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). | DropTarget |
| dropAllowed : String The CSS class returned to the drag source when drop is allowed (defaults to "x-dd-drop-ok"). | DropTarget |
| dropNotAllowed : String The CSS class returned to the drag source when drop is not allowed (defaults to "x-dd-drop-nodrop"). | DropTarget |
| overClass : String The CSS class applied to the drop target element while the drag source is over it (defaults to ""). | DropTarget |
Public Properties
|
| available : boolean The available property is false until the linked dom element is accessible. | DragDrop |
| config : object Configuration attributes passed into the constructor | DragDrop |
| defaultPadding : Object Provides default constraint padding to "constrainTo" elements (defaults to {left: 0, right:0, top:0, bottom:0}). | DragDrop |
| groups : object An object in the format {'group1':true, 'group2':trueThe group defines a logical collection of DragDrop objects that are
related. Instances only get events when interact... The group defines a logical collection of DragDrop objects that are
related. Instances only get events when interacting with other
DragDrop object in the same group. This lets us define multiple
@@ -125,27 +120,27 @@ false | Lock this instance | DragDrop |
| notifyDrop( Ext.dd.DragSource source , Event e , Object data )
:
- BooleanThe function a Ext.dd.DragSource calls once to notify this drop target that the dragged item has
-been dropped on it.... The function a 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
+ Boolean The function a Ext.dd.DragSource calls once to notify this drop target that the dragged item has
+been dropped on it. ... The function a 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
repair action does not run. | DropTarget |
| notifyEnter( Ext.dd.DragSource source , Event e , Object data )
:
- StringThe function a Ext.dd.DragSource calls once to notify this drop target that the source is now over the
-target. This... The function a 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. Parameters:Returns:String status The CSS class that communicates the drop status back to the source so that the
+ String The function a Ext.dd.DragSource calls once to notify this drop target that the source is now over the
+target. This ... The function a 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.
| DropTarget |
| notifyOut( Ext.dd.DragSource source , Event e , Object data )
:
- voidThe function a Ext.dd.DragSource calls once to notify this drop target that the source has been dragged
-out of the t... The function a 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
+ void The function a Ext.dd.DragSource calls once to notify this drop target that the source has been dragged
+out of the ta... The function a 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. | DropTarget |
| notifyOver( Ext.dd.DragSource source , Event e , Object data )
:
- StringThe function a Ext.dd.DragSource calls continuously while it is being dragged over the target.
-This method will be c... The function a 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. Parameters:Returns:String status The CSS class that communicates the drop status back to the source so that the
+ String The function a Ext.dd.DragSource calls continuously while it is being dragged over the target.
+This method will be ca... The function a 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.
| DropTarget |
| onAvailable()
:
voidOverride the onAvailable method to do what is needed after the initial
|