Working with the Webix uploader, but unfortunately I'm unavailable to find onAfterFileDelete
or onAfterDelete
(or any) event. Something opposite to onAfterFileAdd
would be very useful.
Here's a snippet of my attempts:
{
view: "uploader", id:"upl1",
autosend:false, value: 'Upload file',
link:"uplist", upload:"some.php",
on:{
onAfterFileAdd:function(){
console.log("onAfterFileAdd") // works well
},
onAfterFileDelete:function(){ // onAfterDelete? anything else?
console.log("onAfterFileDelete")
}
}
},
{
view:"list", id:"uplist",
type:"uploader", autoheight:true, borderless:true
}
Appreciate any suggestions.
You can use uploader.files, which is an instance of DataCollection and has all necessary events.
$$("uplist").files.attachEvent("onBeforeDelete", handler)