Search
ToolStripItem.draw Method
See Also
 






ListItem.draw override.

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

 Syntax

JavaScript  Copy Code

function draw ()

 Example

The following code uses the draw method in a function that creates a ToolStrip programmatically:

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