Specifies how a ToolStrip item is displayed.
Namespace: MindFusion.Common.UI
File: DropDown.js
JavaScript Copy Code |
---|
// enum |
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. |
The following code adss a new ToolStripItem of type ToolStripItemType.Separator and adds it to a toolstrip:
JavaScript Copy Code |
---|
function loadChatWindow(sender) tools.items.add(new ui.ToolStripItem(ui.ToolStripItemType.Separator)); sender.element.querySelector("#toolstrip").appendChild(tools.draw()); |