Search
ToolStripItem Class
See Also
 






Represents an item in a ToolStrip control.

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

 Syntax

JavaScript  Copy Code

// class
ToolStripItem.prototype = {}

 Example

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 toolstrip = new ui.ToolStrip(document.getElementById("toolstrip"));

var button = new ui.ToolStripItem(ui.ToolStripItemType.Label, "New Tab");
button.tooltip = "New Tab";
button.cssClass = "toolbutton-add";
toolstrip.items.add(button);

 Inheritance Hierarchy

MindFusion.Common.UI.TemplatedItem
    MindFusion.Common.UI.ListItem
        MindFusion.Common.UI.ToolStripItem

 See Also