ractive-drag-and-drop-files
v1.0.0
Published
A Ractive event proxy wrapper for https://github.com/mikolalysenko/drag-and-drop-files
Downloads
55
Readme
A Ractive wrapper/fork of https://github.com/mikolalysenko/drag-and-drop-files
Seriously it's nearly identical
var dragDropFiles = require('ractive-drag-and-drop-files')
var ractive = new Ractive({
el: '#container',
template: '<div on-dragdropfiles="drag-file">{{text}}</div>',
data: {
text: 'Drag me!'
},
events: {
dragdropfiles: dragDropFiles
}
})
ractive.on('drag-file', function(event) {
var files = event.files
console.log(files)
}