class type t =Inheritsobject
..end
method dragData : 'a. 'a Js.t Js.prop
This property contains the data representing the dragged object. This data is set up by the implementation of the getDragData method. It must contain a ddel property, but can contain any other data according to the application's needs.
method afterDragDrop : 'b.
(#Ext_dd_DragDrop.t as 'b) Js.t ->
Dom_html.event Js.t -> Js.js_string Js.t -> unit Js.meth
An empty function by default, but provided so that you can perform a custom action after a valid drag drop has occurred by providing an implementation.
Parameters:
#Ext_dd_DragDrop.t Js.t
The drop target
Dom_html.event Js.t
The event object
Js.js_string Js.t
The id of the dropped element
method afterDragEnter : 'c.
(#Ext_dd_DragDrop.t as 'c) Js.t ->
Dom_html.event Js.t -> Js.js_string Js.t -> unit Js.meth
An empty function by default, but provided so that you can perform a custom action when the dragged item enters the drop target by providing an implementation.
Parameters:
#Ext_dd_DragDrop.t Js.t
The drop target
Dom_html.event Js.t
The event object
Js.js_string Js.t
The id of the dragged element
method afterDragOut : 'd.
(#Ext_dd_DragDrop.t as 'd) Js.t ->
Dom_html.event Js.t -> Js.js_string Js.t -> unit Js.meth
An empty function by default, but provided so that you can perform a custom action after the dragged item is dragged out of the target without dropping.
Parameters:
#Ext_dd_DragDrop.t Js.t
The drop target
Dom_html.event Js.t
The event object
Js.js_string Js.t
The id of the dragged element
method afterDragOver : 'e.
(#Ext_dd_DragDrop.t as 'e) Js.t ->
Dom_html.event Js.t -> Js.js_string Js.t -> unit Js.meth
An empty function by default, but provided so that you can perform a custom action while the dragged item is over the drop target by providing an implementation.
Parameters:
#Ext_dd_DragDrop.t Js.t
The drop target
Dom_html.event Js.t
The event object
Js.js_string Js.t
The id of the dragged element
method afterInvalidDrop : Dom_html.event Js.t -> Js.js_string Js.t -> unit Js.meth
An empty function by default, but provided so that you can perform a custom action after an invalid drop has occurred by providing an implementation.
Parameters:
Dom_html.event Js.t
The event object
Js.js_string Js.t
The id of the dropped element
method afterValidDrop : 'f. 'f Js.t -> Dom_html.event Js.t -> Js.js_string Js.t -> unit Js.meth
An empty function by default, but provided so that you can perform a custom action after a valid drop has occurred by providing an implementation.
Parameters:
_ Js.t
The target DD
Dom_html.event Js.t
The event object
Js.js_string Js.t
The id of the dropped element
method alignElWithMouse : Dom_html.element Js.t -> Js.number Js.t -> Js.number Js.t -> unit Js.meth
Sets the element to the location of the mousedown or click event, maintaining the cursor location relative to the location on the element that was clicked. Override this if you want to place the element in a location other than where the cursor is.
Parameters:
Dom_html.element Js.t
the element to move
Js.number Js.t
the X coordinate of the mousedown or drag event
Js.number Js.t
the Y coordinate of the mousedown or drag event
method beforeDragDrop : 'g.
(#Ext_dd_DragDrop.t as 'g) Js.t ->
Dom_html.event Js.t -> Js.js_string Js.t -> bool Js.t Js.meth
An empty function by default, but provided so that you can perform a custom action before the dragged item is dropped onto the target and optionally cancel the onDragDrop.
Parameters:
#Ext_dd_DragDrop.t Js.t
The drop target
Dom_html.event Js.t
The event object
Js.js_string Js.t
The id of the dragged element
Returns:
bool Js.t
isValid True if the drag drop event is valid, else false to cancel
method beforeDragEnter : 'h.
(#Ext_dd_DragDrop.t as 'h) Js.t ->
Dom_html.event Js.t -> Js.js_string Js.t -> bool Js.t Js.meth
An empty function by default, but provided so that you can perform a custom action before the dragged item enters the drop target and optionally cancel the onDragEnter.
Parameters:
#Ext_dd_DragDrop.t Js.t
The drop target
Dom_html.event Js.t
The event object
Js.js_string Js.t
The id of the dragged element
Returns:
bool Js.t
isValid True if the drag event is valid, else false to cancel
method beforeDragOut : 'i.
(#Ext_dd_DragDrop.t as 'i) Js.t ->
Dom_html.event Js.t -> Js.js_string Js.t -> bool Js.t Js.meth
An empty function by default, but provided so that you can perform a custom action before the dragged item is dragged out of the target without dropping, and optionally cancel the onDragOut.
Parameters:
#Ext_dd_DragDrop.t Js.t
The drop target
Dom_html.event Js.t
The event object
Js.js_string Js.t
The id of the dragged element
Returns:
bool Js.t
isValid True if the drag event is valid, else false to cancel
method beforeDragOver : 'j.
(#Ext_dd_DragDrop.t as 'j) Js.t ->
Dom_html.event Js.t -> Js.js_string Js.t -> bool Js.t Js.meth
An empty function by default, but provided so that you can perform a custom action while the dragged item is over the drop target and optionally cancel the onDragOver.
Parameters:
#Ext_dd_DragDrop.t Js.t
The drop target
Dom_html.event Js.t
The event object
Js.js_string Js.t
The id of the dragged element
Returns:
bool Js.t
isValid True if the drag event is valid, else false to cancel
method beforeInvalidDrop : 'k.
(#Ext_dd_DragDrop.t as 'k) Js.t ->
Dom_html.event Js.t -> Js.js_string Js.t -> bool Js.t Js.meth
An empty function by default, but provided so that you can perform a custom action after an invalid drop has occurred.
Parameters:
#Ext_dd_DragDrop.t Js.t
The drop target
Dom_html.event Js.t
The event object
Js.js_string Js.t
The id of the dragged element
Returns:
bool Js.t
isValid True if the invalid drop should proceed, else false to cancel
method destroy : unit Js.meth
Destroy this DragDrop instance
method getDragData : 'l 'm. 'l Js.t -> 'm Js.t Js.meth
Returns the data object associated with this drag source
Parameters:
_ Js.t
Returns:
_ Js.t
data An object containing arbitrary data
method getProxy : Ext_dd_StatusProxy.t Js.t Js.meth
Returns the drag source's underlying Ext.dd.StatusProxy
Returns:
Ext_dd_StatusProxy.t Js.t
proxy The StatusProxy
method hideProxy : unit Js.meth
Hides the drag source's Ext.dd.StatusProxy
method onBeforeDrag : 'n. 'n Js.t -> Dom_html.event Js.t -> bool Js.t Js.meth
An empty function by default, but provided so that you can perform a custom action before the initial drag event begins and optionally cancel it.
Parameters:
_ Js.t
An object containing arbitrary data to be shared with drop targets
Dom_html.event Js.t
The event object
Returns:
bool Js.t
isValid True if the drag event is valid, else false to cancel
method onStartDrag : Js.number Js.t -> Js.number Js.t -> unit Js.meth
An empty function by default, but provided so that you can perform a custom action once the initial drag event has begun. The drag cannot be canceled from this function.
Parameters:
Js.number Js.t
The x position of the click on the dragged object
Js.number Js.t
The y position of the click on the dragged object