Reputation: 10828
I am having problem showing Remove buttons on the thumbnails.
var myDropzone = new Dropzone("#my-awesome-dropzone");
myDropzone.options = {
addRemoveLinks: true,
};
What did I do wrong?
Upvotes: 0
Views: 1199
Reputation: 3259
You are mixing to different ways of initializing dropzone, the simplest way is to use either one:
Dropzone.options.MyAwesomeDropzone = {
addRemoveLinks: true
}
or the other
Dropzone.autoDiscover = false;
var myDropzone = new Dropzone("#my-awesome-dropzon", {
addRemoveLinks: true
});
Upvotes: 1