zefoy / ngx-dropzone-wrapper

Angular wrapper library for Dropzone
MIT License
173 stars 51 forks source link

Multiple dropzones on one page #125

Open rvmladenov opened 5 years ago

rvmladenov commented 5 years ago

Hey guys I am having issues creating multiple ngx-dropzone-wrapper instances which have different templates with dynamic IDs. I will be verry appreciated if someone have an example of that and share it here.

carminemilieni commented 4 years ago

You are solved? @rvmladenov

amd2107 commented 4 years ago

Somebody with this answer?

carminemilieni commented 4 years ago

import { DropzoneConfig, DropzoneConfigInterface, DropzoneComponent } from 'ngx-dropzone-wrapper' ... @ViewChild('firstImageDZ', { static: false }) firstImageDzRef: DropzoneComponent; @ViewChild('galleryPhotoDZ', { static: false }) galleryPhotoDzRef: DropzoneComponent; ... <dropzone #firstImageDZ [config]="firstPhotoDropzoneConfig" class=" w-100" (removedFile)="onRemovedFirstCarPhoto($event)" (success)="onSuccessFirstCarPhoto($event)"></dropzone> <dropzone #galleryPhotoDZ [config]="galleryPhotoDropzoneConfig" class=" w-100" (removedFile)="onRemovedGalleryPhotoCarPhoto($event)" (success)="onSuccessGalleryPhotoCarPhoto($event)"> </dropzone> Worked for me