setActiveIndex

selects the item with the specified index

void setActiveIndex(number index);
indexnumberthe item index (zero-based numbering)

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').setActiveIndex(0);

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