webix.confirm -- How do I ask the user if they want to delete?

The below code passes right thru and I cant capture the value of the choice

	fileManager.attachEvent("onBeforeDeleteFile",function(id){
		webix.confirm({
			text: "Delete File(s) ?",
			type:"confirm-warning"
		});
		return false;
	});

Hi,

You need to provide a callback function for the confirm window:

webix.confirm({
  ...
  callback:function(res){ //1 or 0
    	if(res)  $$("fm").deleteFile(id);
  }
});

Check the following snippet, please: http://webix.com/snippet/9afee735