Skip to content

tpkn/dnd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DnD

Yet another wrapper for "drag and drop" action, one of the millions of similar. Just pass by...

API

new DnD(target[, options]);

target

Type: Object
DOM element

options.drop

Type: Function

options.over

Type: Function

options.out

Type: Function

Usage

var dnd = new DnD(document.getElementById('drop'), { drop: onDropHandler });

function onDropHandler(e, files, text){
   console.log('files:', files);
   console.log('text:', text);
}

About

Yet another wrapper for "drag and drop" action, one of the millions of similar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors