Dropzonejs में मैं बटन हटाना बनाने रहा हूँ और उसके बाद थंबनेल करने के लिए इसे जोड़कर साथ यूआरएल को नष्ट लिंक करने के लिए, मैं कैसे यूआरएल जो मैं सीधे सर्वर से geeting हूँ addRemoveLinks:true
का उपयोग करके बटन को हटाने के लिए लिंक कर सकते हैं,dropzone js निकालें बटन
//Write function if you need to add some event after files added
myDropzone.on("addedfile", function(file) {
console.log('Files Added using ---------->'+$attrs.apiCall);
var _this=this;
/* Maybe display some more file information on your page */
var removeButton = Dropzone.createElement("<button data-dz-remove>-Remove file</button>");
removeButton.addEventListener("click", function(e) {
e.preventDefault();
e.stopPropagation();
_this.removeFile(file);
});
file.previewElement.appendChild(removeButton);
});
साथ काम करता है आप कभी भी यह पता लगा था मदद करता है? मैं एक ही चीज़ पर काम कर रहा हूं ... – cjn
@cjn हाँ मैंने लिंक लिंक हटा दिया है। कोड के लिए उत्तर की जांच करें। – anam