select

selects the specified item(s)

void select(string| array id, [boolean preserve] );
idstring| arraythe id of a single item or an array of items ids
preservebooleanif it's set to true, the method won't affect the existing selection (will select new items while preserving selection of old items). The default value - false

Example

webix.ui({
    view:"dataview",
    id:"data",
    // ...
});
$$('data').select(2);               //selects an item with the id=2
$$('data').select(3, true);         //selects an extra item, preserving previous selection
 
$$('data').select([2,3,5]);         //selects a group of items with ids: 2,3,5

Related samples

Details

If the parameters aren't specified, all items will be selected.

    $$('data').select();                     //selects all items
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix html5 framework and page of object list javascript product.