ListContainer.deselectItem override.
Namespace: MindFusion.Common.UI
File: TabControl.js
The following code checks if the first tab page is selected and if not, it removes the selected item.
JavaScript Copy Code |
---|
if(tabControl.selectedIndex != 0) { tabControl.deselectItem(tabControl.selection.items()[0]); tabControl.selectItem(tabPage1); } |