isSelected

checks whether the specified item is selected or not

boolean isSelected(id id);
ididthe id of the item in question
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