exists

checks whether an item with the specified id exists

boolean exists(id id);

Parameters

ididthe id of an item

Returns

booleanreturns true if the item exists. Otherwise, false

Example

if(!$$("my_dataview").exists())// -> returns boolean value
    var dataview = new webix.UI({
        view:"dataview",
        id:"my_dataview",
        ..config
    });

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix web control library and page of download datatable product.