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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
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.