getBranchIndex

получает индекс элемента в ветке

number getBranchIndex(id id);
ididID элемента
numberиндекс элемента

Example

var tree = webix.ui({
    view:"tree",
    data: [
        { id:"branch1", value:"The Shawshank Redemption", data:[
            { id:"1.1", value:"Part 1" },
            { id:"1.2", value:"Part 2" }
        ]}
    ]
});
 
var index  = tree.getBranchIndex("1.1"); // -> 0
var index1 = tree.getBranchIndex("1.2"); // -> 1

See also
Наверх
If you have not checked yet, be sure to visit site of our main product Webix js framework and page of tree visualization javascript product.