Editing Events, JavaScript Programming Example of Editing Events in File Manager

JavaScript Programming Example of Editing Events in File Manager

It's possible to change file names in a popup menu which a user can call with a right mouse click. Check out how you can enable this action in File Manager. Feel free to take advantage of our free programming example of Editing Events.

JS Code

webix.ui({
  view:"filemanager",
  id:"files"
});

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

$$("files").attachEvent("onBeforeEditFile",function(ids){
  webix.message("Edit started: "+ids[0]);
  return true;
});

$$("files").attachEvent("onBeforeEditStop",function(id,state,editor,view){
  webix.message("New value: "+state.value);
  return true;
});

$$("files").attachEvent("onAfterEditStop",function(id,state,editor,view){
  webix.message("Editor closed: "+ id);
  return true;
});