dataTransfer.effectAllowed(value): It will tell the browser that only the listed type(s) of operations are allowed for the user.
dataTransfer.addElement(element): It is used to add the specified element to be drawn as a drag feedback image.
The coordinates specify the drop location.
tDragImage(element, x, y): It is used to display an existing image as the drag image instead of the default image alongside the cursor.
dataTransfer.files: It is used to return all the files that are to be dropped.
dataTransfer.types: This property returns an array of all the formats that were set in the dragstart event.
If there is no such data, returns the empty string.
dataTransfer.getData(format): It returns the data of the specified format.
Calling it with a format argument removes only that specific data.
dataTransfer.clearData(format): It is used for calling this function with no argument that clears all the data.
tData(format, data): It is used to set the data to be dragged.
These are the properties associated with it: It is used to hold the dragged data from the source and drop it to the desired location. The Data Transfer Object: The data transfer property is used when the whole process of Drag and Drop happens.
ISRO CS Syllabus for Scientist/Engineer Exam.
ISRO CS Original Papers and Official Keys.
GATE CS Original Papers and Official Keys.
Full Stack Development with React & Node JS(Live).
Preparation Package for Working Professional.
Full Stack Development with React & Node JS (Live).