Liking cljdoc? Tell your friends :D

web.DataTransfer

The DataTransfer object is used to hold the data that is being during a drag and drop operation. It may hold one or more data each of one or more data types. For more information about drag drop, see HTML Drag and Drop API.

The DataTransfer object is used to hold the data that is being
during a drag and drop operation. It may hold one or more data
each of one or more data types. For more information about drag
drop, see HTML Drag and Drop API.
raw docstring

add-elementcljs

(add-element this el)

Method.

The DataTransfer.addElement() method sets the drag source to given element. This element will be the element to which drag dragend events are fired, and not the defaut target (the node was dragged).

void dataTransfer.addElement(el);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/addElement

Method.

The DataTransfer.addElement() method sets the drag source to
given element. This element will be the element to which drag
dragend events are fired, and not the defaut target (the node
was dragged).

`void dataTransfer.addElement(el);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/addElement`
sourceraw docstring

clear-datacljs

(clear-data this & args)

Method.

The DataTransfer.clearData() method removes the drag operation's data` for the given type. If data for the given type does not this method does nothing.

DataTransfer.clearData([format]);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/clearData

Method.

The DataTransfer.clearData() method removes the drag operation's
data` for the given type. If data for the given type does not
this method does nothing.

`DataTransfer.clearData([format]);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/clearData`
sourceraw docstring

constructorcljs

Constructor.

The DataTransfer constructor creates a new web.DataTransfer object instance.

None.

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/DataTransfer

Constructor.

The DataTransfer constructor creates a new `web.DataTransfer` object instance.

None.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/DataTransfer`
sourceraw docstring

drop-effectcljs

(drop-effect this)

Property.

The DataTransfer.dropEffect property controls the feedback (typically the user is given during a drag and drop operation. It will affect cursor is displayed while dragging. For example, when the user over a target drop element, the browser's cursor may indicate type of operation will occur.

dataTransfer.dropEffect;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/dropEffect

Property.

The DataTransfer.dropEffect property controls the feedback (typically
the user is given during a drag and drop operation. It will affect
cursor is displayed while dragging. For example, when the user
over a target drop element, the browser's cursor may indicate
type of operation will occur.

`dataTransfer.dropEffect;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/dropEffect`
sourceraw docstring

effect-allowedcljs

(effect-allowed this)

Property.

The DataTransfer.effectAllowed property specifies the effect is allowed for a drag operation. The copy operation is used to that the data being dragged will be copied from its present location the drop location. The move operation is used to indicate that data being dragged will be moved, and the link operation is used indicate that some form of relationship or connection will be between the source and drop locations.

dataTransfer.effectAllowed;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/effectAllowed

Property.

The DataTransfer.effectAllowed property specifies the effect
is allowed for a drag operation. The copy operation is used to
that the data being dragged will be copied from its present location
the drop location. The move operation is used to indicate that
data being dragged will be moved, and the link operation is used
indicate that some form of relationship or connection will be
between the source and drop locations.

`dataTransfer.effectAllowed;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/effectAllowed`
sourceraw docstring

filescljs

(files this)

Property.

The DataTransfer.files property is a web.list of the files the drag operation. If the operation includes no files, the list empty.

dataTransfer.files;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/files

Property.

The DataTransfer.files property is a `web.list of the files`
the drag operation. If the operation includes no files, the list
empty.

`dataTransfer.files;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/files`
sourceraw docstring

get-datacljs

(get-data this format)

Method.

The DataTransfer.getData() method retrieves drag data (as a dom.DOMString) the specified type. If the drag operation does not include data, method returns an empty string.

dataTransfer.getData(format);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/getData

Method.

The DataTransfer.getData() method retrieves drag data (as a `dom.DOMString`)
the specified type. If the drag operation does not include data,
method returns an empty string.

`dataTransfer.getData(format);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/getData`
sourceraw docstring

itemscljs

(items this)

Property.

The read-only web.DataTransfer property items property is a of the web.data transfer items in a drag operation. The list one item for each item in the operation and if the operation no items, the list is empty.

itemList = dataTransfer.items;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/items

Property.

The read-only `web.DataTransfer` property items property is a
of the `web.data transfer items` in a drag operation. The list
one item for each item in the operation and if the operation
no items, the list is empty.

`itemList = dataTransfer.items;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/items`
sourceraw docstring

moz-clear-data-atcljs

(moz-clear-data-at this & args)

Method.

The DataTransfer.mozClearDataAt() method removes the data associated the given format for an item at the specified index. The index be in the range from zero to the number of items minus one.

void dataTransfer.mozClearDataAt([type], index);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozClearDataAt

Method.

The DataTransfer.mozClearDataAt() method removes the data associated
the given format for an item at the specified index. The index
be in the range from zero to the number of items minus one.

`void dataTransfer.mozClearDataAt([type], index);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozClearDataAt`
sourceraw docstring

moz-cursorcljs

(moz-cursor this)

Property.

The DataTransfer.mozCursor property returns or sets the drag state. This is primarily used to control the cursor during tab

dataTransfer.mozCursor;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozCursor

Property.

The DataTransfer.mozCursor property returns or sets the drag
state. This is primarily used to control the cursor during tab

`dataTransfer.mozCursor;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozCursor`
sourceraw docstring

moz-get-data-atcljs

(moz-get-data-at this & args)

Method.

The DataTransfer.mozGetDataAt() method is used to retrieve an in the drag event's web.data transfer object, based on a given and index. This method returns null if the specified item does exist or if the index is not in the range from zero to the number items minus one.

nsIVariant dataTransfer.mozGetDataAt([type], index);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozGetDataAt

Method.

The DataTransfer.mozGetDataAt() method is used to retrieve an
in the drag event's `web.data transfer` object, based on a given
and index. This method returns null if the specified item does
exist or if the index is not in the range from zero to the number
items minus one.

`nsIVariant dataTransfer.mozGetDataAt([type], index);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozGetDataAt`
sourceraw docstring

moz-item-countcljs

(moz-item-count this)

Property.

The DataTransfer.mozItemCount property returns the number of being dragged. This can be used, for example, to get the number files being dragged.

dataTransfer.mozItemCount;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozItemCount

Property.

The DataTransfer.mozItemCount property returns the number of
being dragged. This can be used, for example, to get the number
files being dragged.

`dataTransfer.mozItemCount;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozItemCount`
sourceraw docstring

moz-set-data-atcljs

(moz-set-data-at this & args)

Method.

The DataTransfer.mozSetDataAt() method is used to add data to specific index in the drag event's web.data transfer object.

void dataTransfer.mozSetDataAt([type], data, index);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozSetDataAt

Method.

The DataTransfer.mozSetDataAt() method is used to add data to
specific index in the drag event's `web.data transfer` object.

`void dataTransfer.mozSetDataAt([type], data, index);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozSetDataAt`
sourceraw docstring

moz-source-nodecljs

(moz-source-node this)

Property.

The DataTransfer.mozSourceNode property is used to determine web.Node over which the mouse cursor was located when the the operation was initiated (for example, when a web.<button> was For external drags or if the calling function cannot reach the null is returned.

dataTransfer.mozSourceNode;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozSourceNode

Property.

The DataTransfer.mozSourceNode property is used to determine
`web.Node` over which the mouse cursor was located when the the
operation was initiated (for example, when a `web.<button>` was
For external drags or if the calling function cannot reach the
null is returned.

`dataTransfer.mozSourceNode;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozSourceNode`
sourceraw docstring

moz-types-atcljs

(moz-types-at this index)

Method.

The DataTransfer.mozTypesAt() method returns a list of the format that are stored for an item at the specified index. If the index not in the range from 0 to the number of items minus one, an string list is returned.

nsIVariant dataTransfer.mozTypesAt(index);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozTypesAt

Method.

The DataTransfer.mozTypesAt() method returns a list of the format
that are stored for an item at the specified index. If the index
not in the range from 0 to the number of items minus one, an
string list is returned.

`nsIVariant dataTransfer.mozTypesAt(index);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozTypesAt`
sourceraw docstring

moz-user-cancelledcljs

(moz-user-cancelled this)

Property.

The DataTransfer.mozUserCancelled property is used in the dragend handler to determine if the user canceled the drag or not. If user canceled the event, the property returns true and returns otherwise. This property only applies to the dragend event.

dataTransfer.mozUserCancelled;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozUserCancelled

Property.

The DataTransfer.mozUserCancelled property is used in the dragend
handler to determine if the user canceled the drag or not. If
user canceled the event, the property returns true and returns
otherwise. This property only applies to the dragend event.

`dataTransfer.mozUserCancelled;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozUserCancelled`
sourceraw docstring

set-datacljs

(set-data this format data)

Method.

The DataTransfer.setData() method sets the drag operation's web.drag to the specified data and type. If data for the given type does exist, it is added at the end of the drag data store, such that last item in theweb.typeslist will be the new type. If data the given type already exists, the existing data is replaced the same position. That is, the order of theweb.types` list not changed when replacing data of the same type.

void dataTransfer.setData(format, data);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/setData

Method.

The DataTransfer.setData() method sets the drag operation's `web.drag
to the specified data and type. If data for the given type does
exist, it is added at the end of the drag data store, such that
last item in the `web.types` list will be the new type. If data
the given type already exists, the existing data is replaced
the same position. That is, the order of the `web.types` list
not changed when replacing data of the same type.

`void dataTransfer.setData(format, data);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/setData`
sourceraw docstring

set-drag-imagecljs

(set-drag-image this img x-offset y-offset)

Method.

When a drag occurs, a translucent image is generated from the target (the element the dragstart event is fired at), and follows mouse pointer during the drag. This image is created automatically, you do not need to create it yourself. However, if a custom image desired, the DataTransfer.setDragImage() method can be used to the custom image to be used. The image will typically be an web.<image> but it can also be a web.<canvas> or any other image element.

void dataTransfer.setDragImage(img, xOffset, yOffset);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/setDragImage

Method.

When a drag occurs, a translucent image is generated from the
target (the element the dragstart event is fired at), and follows
mouse pointer during the drag. This image is created automatically,
you do not need to create it yourself. However, if a custom image
desired, the DataTransfer.setDragImage() method can be used to
the custom image to be used. The image will typically be an `web.<image>`
but it can also be a `web.<canvas>` or any other image element.

`void dataTransfer.setDragImage(img, xOffset, yOffset);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/setDragImage`
sourceraw docstring

set-drop-effect!cljs

(set-drop-effect! this val)

Property.

The DataTransfer.dropEffect property controls the feedback (typically the user is given during a drag and drop operation. It will affect cursor is displayed while dragging. For example, when the user over a target drop element, the browser's cursor may indicate type of operation will occur.

dataTransfer.dropEffect;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/dropEffect

Property.

The DataTransfer.dropEffect property controls the feedback (typically
the user is given during a drag and drop operation. It will affect
cursor is displayed while dragging. For example, when the user
over a target drop element, the browser's cursor may indicate
type of operation will occur.

`dataTransfer.dropEffect;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/dropEffect`
sourceraw docstring

set-effect-allowed!cljs

(set-effect-allowed! this val)

Property.

The DataTransfer.effectAllowed property specifies the effect is allowed for a drag operation. The copy operation is used to that the data being dragged will be copied from its present location the drop location. The move operation is used to indicate that data being dragged will be moved, and the link operation is used indicate that some form of relationship or connection will be between the source and drop locations.

dataTransfer.effectAllowed;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/effectAllowed

Property.

The DataTransfer.effectAllowed property specifies the effect
is allowed for a drag operation. The copy operation is used to
that the data being dragged will be copied from its present location
the drop location. The move operation is used to indicate that
data being dragged will be moved, and the link operation is used
indicate that some form of relationship or connection will be
between the source and drop locations.

`dataTransfer.effectAllowed;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/effectAllowed`
sourceraw docstring

set-files!cljs

(set-files! this val)

Property.

The DataTransfer.files property is a web.list of the files the drag operation. If the operation includes no files, the list empty.

dataTransfer.files;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/files

Property.

The DataTransfer.files property is a `web.list of the files`
the drag operation. If the operation includes no files, the list
empty.

`dataTransfer.files;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/files`
sourceraw docstring

set-items!cljs

(set-items! this val)

Property.

The read-only web.DataTransfer property items property is a of the web.data transfer items in a drag operation. The list one item for each item in the operation and if the operation no items, the list is empty.

itemList = dataTransfer.items;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/items

Property.

The read-only `web.DataTransfer` property items property is a
of the `web.data transfer items` in a drag operation. The list
one item for each item in the operation and if the operation
no items, the list is empty.

`itemList = dataTransfer.items;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/items`
sourceraw docstring

set-moz-cursor!cljs

(set-moz-cursor! this val)

Property.

The DataTransfer.mozCursor property returns or sets the drag state. This is primarily used to control the cursor during tab

dataTransfer.mozCursor;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozCursor

Property.

The DataTransfer.mozCursor property returns or sets the drag
state. This is primarily used to control the cursor during tab

`dataTransfer.mozCursor;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozCursor`
sourceraw docstring

set-moz-item-count!cljs

(set-moz-item-count! this val)

Property.

The DataTransfer.mozItemCount property returns the number of being dragged. This can be used, for example, to get the number files being dragged.

dataTransfer.mozItemCount;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozItemCount

Property.

The DataTransfer.mozItemCount property returns the number of
being dragged. This can be used, for example, to get the number
files being dragged.

`dataTransfer.mozItemCount;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozItemCount`
sourceraw docstring

set-moz-source-node!cljs

(set-moz-source-node! this val)

Property.

The DataTransfer.mozSourceNode property is used to determine web.Node over which the mouse cursor was located when the the operation was initiated (for example, when a web.<button> was For external drags or if the calling function cannot reach the null is returned.

dataTransfer.mozSourceNode;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozSourceNode

Property.

The DataTransfer.mozSourceNode property is used to determine
`web.Node` over which the mouse cursor was located when the the
operation was initiated (for example, when a `web.<button>` was
For external drags or if the calling function cannot reach the
null is returned.

`dataTransfer.mozSourceNode;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozSourceNode`
sourceraw docstring

set-moz-user-cancelled!cljs

(set-moz-user-cancelled! this val)

Property.

The DataTransfer.mozUserCancelled property is used in the dragend handler to determine if the user canceled the drag or not. If user canceled the event, the property returns true and returns otherwise. This property only applies to the dragend event.

dataTransfer.mozUserCancelled;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozUserCancelled

Property.

The DataTransfer.mozUserCancelled property is used in the dragend
handler to determine if the user canceled the drag or not. If
user canceled the event, the property returns true and returns
otherwise. This property only applies to the dragend event.

`dataTransfer.mozUserCancelled;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/mozUserCancelled`
sourceraw docstring

set-types!cljs

(set-types! this val)

Property.

The DataTransfer.types read-only property returns an array of drag data formats (as web.strings) that were set in the dragstart The order of the formats is the same order as the data included the drag operation.

dataTransfer.types;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/types

Property.

The DataTransfer.types read-only property returns an array of
drag data formats (as `web.strings`) that were set in the dragstart
The order of the formats is the same order as the data included
the drag operation.

`dataTransfer.types;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/types`
sourceraw docstring

typescljs

(types this)

Property.

The DataTransfer.types read-only property returns an array of drag data formats (as web.strings) that were set in the dragstart The order of the formats is the same order as the data included the drag operation.

dataTransfer.types;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/types

Property.

The DataTransfer.types read-only property returns an array of
drag data formats (as `web.strings`) that were set in the dragstart
The order of the formats is the same order as the data included
the drag operation.

`dataTransfer.types;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/types`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close