getActiveId

gets the id of the current selected item

string getActiveId();
stringthe id of the current selected item

Example

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'

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