Selects a ListItem.
Namespace: MindFusion.Common.UI
File: ListContainer.js
JavaScript Copy Code |
---|
function selectItem (item) |
ListItem. The item to select.
The following sample creates a new ToolStripItem and adds it to the collection of items of a ToolStrip instance, which derives from ListContainer. Then it selects this item.
JavaScript Copy Code |
---|
var ui = MindFusion.UI; // create a new instance of the WindowHost control var button = new ui.ToolStripItem(ui.ToolStripItemType.Label, "New Tab"); toolstrip.selectItem(button); |