Properties:
Name | Type | Description |
---|---|---|
accepted |
bool | [readonly] Whether the area would accept the current drop item. |
hovering |
bool | [readonly] Whether a drop item is hovering the area. |
Extends
Type Definitions
-
A drop-enter event. The event must be accepted in order to allow dropping.
Properties:
Name Type Description accepted
bool (default:
false
) Set totrue
to accept the event.dropEffect
string Set to change the current HTML5 drop effect. One of
copy|move|link|none
original
DragEvent [readonly] The original HTML5 DragEvent object.
source
html.Draggable [readonly] The source of the drag operation, or
null
if the drag was from outside.types
Array.<string> The list of transfer types.
-
A drop event.
Properties:
Name Type Description accepted
bool (default:
false
) Set totrue
to accept the event.data
object [readonly] A map of the contained data types and values.
dropEffect
string [readonly] The selected HTML5 drop effect. One of
copy|move|link|none
items
Array.<DataTransferItem> The list of HTML5 data transfer items (see https://devdocs.io/dom/datatransferitem).
original
DragEvent [readonly] The original HTML5 DragEvent object.
source
html.Draggable [readonly] The source of the drag operation, or
null
if the drag was from outside.types
Array.<string> The list of transfer types.
Events
-
Is triggered when an item is dropped on the drop area.
Name Type Description event
html.DropArea.DropEvent The event object.
-
Is triggered when the drop area is hovered by a drop item and has to decide whether to accept the item. Set
event.accepted
totrue
to accept after investigatingevent.types
.types
may contain MIME types, or the special typeFiles
, which denotes external files, e.g. when dropping files from a file manager.Name Type Description event
html.DropArea.DropEnterEvent The event object.