Assets API

(part of the asset browser functionality)

editor.dragDropSource(string dragDropId, string data, function callback)
Parameters:dragDropId – The drag and drop id

An arbitrary id that is created by the user. Drag and drop targets only accept payloads from drag and drop sources with the same dragDropId.

Parameters:data – Payload of the drag and drop action

The actual data that gets transferred from a drag and drop source to a drag and drop target.

Parameters:callback – Callback function

Function that gets invoked when a payload has been successfully dropped on a drag and drop target.

editor.dragDropTarget(string dragDropId)
Parameters:dragDropId – The drag and drop id.

An arbitrary id that is created by the user. Drag and drop targets only accept payloads from drag and drop sources with the same dragDropId.