Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Note
titleContent Freeze

As of July 25th, 2023, there is a content freeze on this page.

The ondrop event activates when the mouse is released during a drag and drop operation and the element is dropped.  If the Drag and Drop Response screen-level properties are defined, the screen will be submitted automatically.  The operation can be cancelled using the pui.dragDropInfo.cancel flag.  Information about the drag and drop operation is provided using the global pui.dragDropInfo object, which will contain the following properties:

...

Code Block
javascript
javascript

if (pui.dragDropInfo["target element id"] == "Trash") {
  changeElementValue("DeletedItems", Number(get("DeletedItems")) + 1);
}

...

Code Block
javascript
javascript

if (!confirm("Are you sure?")) {
  pui.dragDropInfo.cancel = true;
}

...