dropzone-nuxt

A Dropzone.js module for Nuxt.js
3,900 6
Install
npm install dropzone-nuxt
Latest Version:0.1.3
Vue:2
License:MIT
Last Updated:Jan 5, 2023
Links: GitHub  ·  npm
Maintainer: schlunsen

dropzone-nuxt

npm (scoped with tag) npm Dependencies

A Dropzone.js module for Nuxt.js.

Installation

$ npm i dropzone-nuxt --save

Setup

  • Add dropzone-nuxt dependency using yarn or npm to your project
  • Add dropzone-nuxt to modules section of nuxt.config.js
{
  modules: [
    // Simple usage
    'dropzone-nuxt',

    // With options
    ['dropzone-nuxt', { /* module options */ }],
 ]
}

Usage

<template>
    <dropzone 
    @vdropzone-file-added="onFileAdded"
    @vdropzone-error="onError"
    @vdropzone-success="onSuccess"
    @vdropzone-complete="onComplete"
    ref="myDropzone" id="dropzone" :options="dropzoneOptions" />
</template>

<script>

export default {
    data() {
        return {
            dropzoneOptions: {
                url: 'https://httpbin.org/post',
                thumbnailWidth: 150,
                maxFilesize: 0.5,
                headers: { "My-Awesome-Header": "header value" }
            }
        }
    },
    methods: {
        onFileAdded(e) {

        },
        onError(e) {

        },
        onSuccess(e) {

        },
        onComplete(e) {

        }


    }
}

</script>


Related Packages

@nuxtjs/dayjs

The best way for use Day.js easily in your Nuxt.js project.

404,248
@geins/ralph-module-voyado-elevate

Component library for Voyado Elevate integrations with Ralph Storefront

3,784
@geins/ralph-module-gtm

Geins module for Google Tag Manager

3,607
@geins/ralph-module-streamify

Streamify module for Geins PWA Storefront Ralph

2,263 0
@geins/ralph-module-hello-retail

Hello Retail module for Geins PWA strorefront

2,010 0

Version History

Version Released License
0.1.3 MIT
0.1.2 MIT
0.1.1 MIT
0.1.0 MIT