exists
checks whether an item with the specified ID exists
boolean exists(number|string id);
| id | number|string | the ID of an item |
| boolean | returns true if the item exists. Otherwise, false |
Example
var id = 3;
if(view.exists(id)){ // true or false
view.select(id);
/* other logic */
}
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.
If you have not checked yet, be sure to visit site of our main product Webix
js frameworks and page of
dataview product.