checks whether an item with the specified ID exists

boolean exists(number|string id);
idnumber|stringthe ID of an item
booleanreturns true if the item exists. Otherwise, false


var id = 3;
if(view.exists(id)){    // true or false
  /* other logic */

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