Search
TabControl.deselectItem Method
See Also
 






ListContainer.deselectItem override.

Namespace: MindFusion.Common.UI
File: TabControl.js

 Syntax

JavaScript  Copy Code

function deselectItem (item)

 Parameters

item

ListItem. The item to deselect.

 Example

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);
}

 See Also