Error Event, JavaScript Programming Example of Error Event in File Manager

JavaScript Programming Example of Error Event in File Manager

A red popup with text alert appears if an error occurs during some operation in Webix File Manager. Have a look at a coding sample demonstrating how you can enable this event. We kindly invite you to download and use our free programming samples located in this section.

JS Code

var path = "https://docs.webix.com/samples/filemanager/samples/server/error"; 

webix.ui({
  rows:[
    {
      template: "Try to execute some operation with files", type:"header", height: 40
    },
    {
      view:"filemanager",
      id:"files",
      handlers:{
        create: path,
        copy: path,
        delete: path,
        download: path,
        move: path,
        rename: path,
        upload: path
      }
    }
  ]
});

$$("files").load("https://docs.webix.com/filemanager/samples/server/");

$$("files").attachEvent("onErrorResponse", function(requestData,response){
  webix.message({type: "error", text:"Error occured in '"+requestData.action+"' operation"});
  return true;
});

Would you like to activate events like this in a file manager effortlessly?