opens a file browsing dialog on a client machine
content | object | file upload context |
$$("uploadAPI").fileDialog();
//or
$$("uploadAPI").fileDialog({ rowid : id.row });
Pay attention that the method isn't supported in IE8 and IE9.
File upload context is an optional object with any properties that you would like to see within an uploaded item data.
For instance, context can be used in the onFileUpload event:
webix.ui({
view:"uploader",
id:"uploadAPI",
on:{
onFileUpload:function(item){
var id = item.context.rowid;
var row = $$("people").getItem(id);
row.photo = item.sname;
$$("people").updateItem(id, row);
}
}
});