isSelected

checks whether the specified item is selected or not

boolean isSelected(id id);

Parameters

ididthe id of the item in question

Returns

booleantrue if the specified item is selected, otherwise - false

Example

webix.ui({
    view:"dataview",
    id:"data",
    ...
});
$$('data').select(2);     //selects an item with the id=2
$$('data').isSelected(2); //-> 'true'

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