Skip to content

Commit b4743e1

Browse files
author
vrajroham
committed
Added new event vdropzone-mounted fired when dropzone component is mounted
1 parent ab46aa7 commit b4743e1

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ Events emitted by the component to the parent.
115115
| vdropzone-sending-multiple(files, xhr, formData) | Fired if the uploadMultiple option is true.|
116116
| vdropzone-queue-complete(file, xhr, formData) | Fired when queue has been completely processed/ uploaded.|
117117
| vdropzone-total-upload-progress(totaluploadprogress, totalBytes, totalBytesSent) | This event can be used to show the overall upload progress of all files. Note : `totaluploadprogress (0-100)`|
118+
| vdropzone-mounted() | Fired when dropzone component is mounted. |
119+
118120

119121
## Development
120122

dev/bundle.js

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/bundle.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue2-dropzone.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.vue

+2
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ mounted () {
224224
this.dropzone.on('totaluploadprogress', function(totaluploadprogress, totalBytes, totalBytesSent){
225225
vm.$emit('vdropzone-total-upload-progress', totaluploadprogress, totalBytes, totalBytesSent)
226226
})
227+
228+
vm.$emit('vdropzone-mounted');
227229
},
228230
229231
beforeDestroy () {

0 commit comments

Comments
 (0)