selectFile
selects an item by id
promise selectFile(string 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) |
Example
$$("dm").selectFile("/Documents")
.then(file => {
webix.message("file selected");
console.log(file);
})
.catch(err => {
webix.message(err.responseText, "debug");
});
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.