The drop action supported or taken by the drop target.
At the start of each event, this value will be 'none'
. During a
'p-dragover'
event, the drop target must set this value to one
of the supported actions, or the drop event will not occur.
When handling the drop event, the drop target should set this to the action which was actually taken. This value will be reported back to the drag initiator.
The mime data associated with the event.
This is mime data provided by the drag initiator. Drop targets should use this data to determine if they can handle the drop.
The drop action proposed by the drag initiator.
This is the action which is preferred by the drag initiator. The drop target is not required to perform this action, but should if it all possible.
The source object of the drag, as provided by the drag initiator.
For advanced applications, the drag initiator may wish to expose
a source object to the drop targets. That will be provided here
if given by the drag initiator, otherwise it will be null
.
The drop actions supported by the drag initiator.
If the dropAction
is not set to one of the supported actions
during the 'p-dragover'
event, the drop event will not occur.
Generated using TypeDoc
A custom event type used for drag-drop operations.
Notes
In order to receive
'p-dragover'
,'p-dragleave'
, or'p-drop'
events, a drop target must cancel the'p-dragenter'
event by calling the event'spreventDefault()
method.