selectFile of ui.filemanager, Methods Webix Docs
selects an item by id
promise selectFile(string id);
| promise | promise that in case of a success resolves with the data object of the file (or folder) |
Example
$$("fm").selectFile("/Documents")
.then(file => {
webix.message("file selected");
console.log(file);
})
.catch(err => {
webix.message(err.responseText, "debug");
});
See also