MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / dragStart

Function dragStart

assets/js/DragNDrop.js:21–23  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

19//Events fired on the drag target
20
21function dragStart(event) {
22 event.dataTransfer.setData("text", event.target.id); // or "text/plain" but just "text" would also be fine since we are not setting any other type/format for data value
23}
24
25//Events fired on the drop target
26

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected