Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/apendua/meteor-dropzone

Dropzone helper for Meteor templates
https://github.com/apendua/meteor-dropzone

Last synced: 9 days ago
JSON representation

Dropzone helper for Meteor templates

Awesome Lists containing this project

README

        

meteor-dropzone
===============

To use call `$.dropzone()` on all nodes where you want to add `dropzone`.
For example, if your template looks like this

```html

```

you'll need to use your template `rendered` hook:

```javascript
Template.myDroparaTemplate.rendered = function () {
$(this.find('.droparea')).dropzone();
}
```

To define the `drop` event use:

```javascript
Template.myTemplate.events({
'drop .dropzone': function () {
// my drop callback
}
});
```