gets the id of the current selected item
string | the id of the current selected item |
webix.ui({
view:"carousel",
id:"carousel1",
container:"box",
cols:[
{ id:"cell1", template:"<img src='spring.jpg'/>" },
{ id:"cell2", template:"<img src='summer.jpg'/>" }
]
});
$$('carousel1').setActive("cell2");
$$('carousel1').getActiveId(); // -> 'cell2'