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 best ui framework and page of tree ui product.