Class type Ext_dd_DragSource.t


class type t = object .. end
Inherits
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:


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:


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:


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:


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:


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:


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:


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:

Returns:


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:

Returns:


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:

Returns:


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:

Returns:


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:

Returns:


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:

Returns:


method getProxy : Ext_dd_StatusProxy.t Js.t Js.meth

Returns the drag source's underlying Ext.dd.StatusProxy

Returns:


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:

Returns:


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: