Documentation

setActiveIndex

selects the item with the specified index

void setActiveIndex(number index);

Parameters

indexnumberthe item index (zero-based numbering)

See also

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);

Back to top