getIndexById

returns the index of the item with the specified ID

number getIndexById(number|string id);

Parameters

idnumber|stringthe item ID

Returns

numberthe item's index
Details

If the ID is not found, the method returns -1

With tree-like structures, use the getBranchIndex method.

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix javascript web framework and page of javascript context menu product.