Skip to content

Bockit/file-dragger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

File-Dragger

Event Emitter that emits a 'file' event every time a file is dropped onto the drop target.

Example

var FileDragger = require('file-dragger')
var emitter = FileDragger()
emitter.on('file', function (file) {
    // do something
})

API

FileDragger(target)

Function that returns an EventEmitter. This EventEmitter will emit 'file' events when files are dropped onto target. target is a DOM element or window object. it defaults to window if nothing is passed in.

About

Listen to file drag-and-drop and emit a file event for each file dropped.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published