selectFile

selects an item by id

promise selectFile(string id);
idstringthe relative path (the ID) to the file (or folder)
promisepromise 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
Back to top