setActive

selects the item with the specified id

void setActive(string id);
idstringthe item id

Example

webix.ui({
    view:"carousel",
    container:"box",
    id:"carousel1",
    cols:[
       { id:"cell1", template:"<img src='spring.jpg'/>" },
       { id:"cell2", template:"<img src='summer.jpg'/>" }
    ]
});
$$('carousel1').setActive("cell2");

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix widget library and page of javascript image slideshow product.