Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/apendua/meteor-dropzone
- Owner: apendua
- Created: 2013-11-22T09:59:14.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-22T10:22:01.000Z (almost 11 years ago)
- Last Synced: 2024-10-19T16:47:57.039Z (20 days ago)
- Language: JavaScript
- Homepage:
- Size: 105 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
}
});
```