Rename file or folder with dhtmlxfolder

Hello,

Could you please say me how rename file or folder with dhmlxfolder. I found to move, delete but not rename.

You can enable editability as

folders.enableEditMode(true);

and switch currently active item to edit state by

foders.editItem();

Also you can change value programmatically, as

var data = folders.getItemDataObject(id);
data.text = “some new”; //set new value
folders.getItem(id).render(); //update item in view