selects an item by id
id | string | the relative path (the ID) to the file (or folder) |
promise | promise that in case of a success resolves with the data object of the file (or folder) |
$$("fm").selectFile("/Documents")
.then(file => {
webix.message("file selected");
console.log(file);
})
.catch(err => {
webix.message(err.responseText, "debug");
});