Initializes a new instance of the ToolStripItem class.
Namespace: MindFusion.Common.UI
File: ToolStripItem.js
JavaScript Copy Code |
---|
function ToolStripItem ([type, [title]]) |
ToolStripItemType. The type of this item.
String. The display text of this item.
The following sample creates a new ToolStripItem and adds it to the collection of items of a ToolStrip instance:
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"); |