Draws the UIControl.
Namespace: MindFusion.Common
File: UIControl.js
JavaScript Copy Code |
---|
function draw () |
HTMLElement. The control DOM element.
The following code uses the draw method in a method that creates a ToolStrip programmatically:
JavaScript Copy Code |
---|
function loadChatWindow(sender) tools.items.add(new ui.ToolStripItem(ui.ToolStripItemType.Separator)); sender.element.querySelector("#toolstrip").appendChild(tools.draw()); |