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