Drag Data API

The Drag Data API provides access for reading event dataTransfer when ‘dragstart’ event was fired.
This data will be available only after ‘dragstart’ event and before ‘drop’ event.
After ‘drop’ event you would not get the dataTransfer.

Using:

import dragData from 'avid-drag-data';

This module is imported from the environment during runtime.
If you use webpack for bundling, add this module to externals.

 externals: [
    ......
    'avid-drag-data',
 ]
 

Getters

getDataTransfer

Returns current event dataTransfer (event.dataTransfer):

dragData.getDataTransfer();

Returns dataTransfer in format:

{
    'text/plain': 'Name,
    'text/x.avid.asset-list': 'interplay-pam:20AB378F-2BA3-4C34-912C-CB6ADEA3172E:sequence:060a2b340101010101010f0013-000000-bbb9917bece200a5-e28b6f24194d-11ee',
    'text/x.avid.asset-list+json': '[{"systemType":"interplay-pam","systemID":"20AB378F-2BA3-4C34-912C-CB6ADEA3172E","type":"sequence","id":"060a2b340101010101010f0013-000000-bbb9917bece200a5-e28b6f24194d-11ee"}]',
    ......
}