Search
ToolStripItemType Enumeration
See Also
 






Specifies how a ToolStrip item is displayed.

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

 Syntax

JavaScript  Copy Code

// enum
ToolStripItemType = {}

 Members

  Member name Value Description

Default

0

An empty item.

Icon

3

The item displays an image.

Label

2

The item displays a label.

Separator

1

The item displays a separator bar.

 Example

The following code adss a new ToolStripItem of type ToolStripItemType.Separator 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