Hi,
I need to get tab item index or id when user clicked on the tab, from selectedTabChanged event function:
function
line = line +
" currentTab:" + args.get_currentTabView();
" newTab:"+ args.get_newTabView();
addLine(line);
}
I can get object here, but I don't know how to get tab item index or id. I cannot find any examples or
documentation on it.
Please help,
Thanks,
Yan
Hello yzbythesea,
Below is the code snippet to get current TabItem ID.
function mySelectedTabChanged(sender, args){
var currentTabElement = args.get_currentTabView();
var currentTabID = currentTabElement.elm.id;
alert(currentTabID);
Hope this helps. Please let us know if you have any questions.
Sincerely,
Swetha