In the construction of the Filemanager I’ve attached a proxy using the following:
//object constructor
var fm = webix.ui({
view: "filemanager",
id: "files",
handlers:{
branch: myProxy,
}
});
When the proxy is invoked, I attempt to resolve the name/value of the branch using getItem. The backend server (a 3rd party CDN) needs the branch name, not the webix id.
As seen here, this instance of the proxy calls $$("files).getItem() with params.source to get the associated name.
var myProxy = {
$proxy: true,
load: function(view, callback, params){
window.source = params.source;
var name = $$("files").getItem (params.source);
//... Ajax call to the backend follows
}
};
Unfortunately, the result stored in ‘name’ is always undefined.
Can you explain how I may extract the name/value of the branch I’m trying to load?