Search
ToolStripItem.type Property
See Also
 






Gets the type of this item.

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

 Syntax

JavaScript  Copy Code

get type() {}

 Property Value

One of the ToolStripItemType Enumeration values. The type of the item.

 Example

The following code adss a new ToolStripItem of type Label and adds it to a toolstrip:

JavaScript  Copy Code

function loadChatWindow(sender)
{
 var tools = new ui.ToolStrip();
 tools.theme = theme;
 tools.scrollable = false;
 tools.allowDrag = false;
 tools.itemClick.addEventListener(onToolClick);

 tools.items.add(new ui.ToolStripItem(ui.ToolStripItemType.Separator));

 sender.element.querySelector("#toolstrip").appendChild(tools.draw());
 tools.attach();
 tools.expand();
}

 See Also