Documentation

getActiveId

gets the id of the current selected item

string getActiveId();

Returns

stringthe id of the current selected item

See also

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'

Back to top