zefoy / ngx-dropzone-wrapper

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

Remove file triggers #29

Closed CleberDSantos closed 7 years ago

CleberDSantos commented 7 years ago

I would like it to have support for when I wanted to delete a file, I could request a call to delete it.

I tried to just change to addRemoveLinks: true, however nothing happens.

sconix commented 7 years ago

Can you be bit more specific. Are you using directive or component and what do you mean that nothing happens. The add / remove links wont show or don't work?

TcQPAD commented 7 years ago

Hello, I'm facing a similar issue using the dropzone component. My Angular version is: 4.0.0

I've set

addRemoveLinks: true

in my configs, but the removeLinks won't work, i.e., when hovering cancel/remove nothing happpens and clicking them won't work.

The configs are working:

dropzone_remove_bug

I noticed the remove link is out of its div container, is-it intended?

remove_dropzone_bug_ui

sconix commented 7 years ago

I don't think the addRemove links does anything else than add the links, you need to handle the removal etc in the remove callback etc.

If that wont solve it I can look into this bit closely once I am back from my holiday on monday.