getIndexById

возвращает индекс элемента по заданному ID

number getIndexById(number|string id);

Parameters

idnumber|stringID элемента

Returns

numberиндекс элемента
Details

Если элемент с указанным ID не обнаружен, метод возвращает значение -1.

С древовидными структурами используйте метод getBranchIndex.

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