A Ractive event proxy wrapper for https://github.com/mikolalysenko/drag-and-drop-files
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
index.js
package.json
readme.md

readme.md

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)
}