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 acceptedbool (default:
false) Set totrueto accept the event.dropEffectstring Set to change the current HTML5 drop effect. One of
copy|move|link|noneoriginalDragEvent [readonly] The original HTML5 DragEvent object.
sourcehtml.Draggable [readonly] The source of the drag operation, or
nullif the drag was from outside.typesArray.<string> The list of transfer types.
-
A drop event.
Properties:
Name Type Description acceptedbool (default:
false) Set totrueto accept the event.dataobject [readonly] A map of the contained data types and values.
dropEffectstring [readonly] The selected HTML5 drop effect. One of
copy|move|link|noneitemsArray.<DataTransferItem> The list of HTML5 data transfer items (see https://devdocs.io/dom/datatransferitem).
originalDragEvent [readonly] The original HTML5 DragEvent object.
sourcehtml.Draggable [readonly] The source of the drag operation, or
nullif the drag was from outside.typesArray.<string> The list of transfer types.
Events
-
Is triggered when an item is dropped on the drop area.
Name Type Description eventhtml.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.acceptedtotrueto accept after investigatingevent.types.typesmay contain MIME types, or the special typeFiles, which denotes external files, e.g. when dropping files from a file manager.Name Type Description eventhtml.DropArea.DropEnterEvent The event object.