getPrevSiblingId
returns the id of the previous sibling of the specified node
id getPrevSiblingId(id id);
Parameters
id | id | ID of the node in question |
Returns
id | ID of the previous sibling or false if there isn't any |
Example
files = new webix.ui({
view:"filemanager",
data: [
{ id:"branch1", value:"Documents", date: 1420717913, type:"folder", data:[
{ id:"doc1", value:"Prices", type:"excel", date: 1420717913, size:"13" },
{ id:"doc2", value:"Products", type:"doc", date: 1420717913, size:"15" }
]}
]
});
files.getPrevSiblingId("doc2"); // returns 'doc1'
See also
Back to top