fires before dragging of a file in the queue has started
data | object | data object |
e | Event | a native event object |
boolean | false - to block dragging of an item, otherwise true |
vault.events.on("BeforeDrag", function(data, events){
// your logic here
return false;
});
The data object can contain the following parameters:
start | (string) the id of a file, from which the dragging process has started |
source | (string[]) an array with ids of dragged files |
target | (string) the id of a potential target file |
added in v4.0
Back to top