MindFusion.Charting for JavaScript Programmer's Guide
UIControl.draw Method
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML

C#
Visual Basic
Java
JavaScript
C++
XAML

Draws the UIControl.

Namespace: MindFusion.Common
File: UIControl.js

## Syntax

JavaScript Copy Code
function draw ()

### Return Value

Type: HTMLElement
HTMLElement. The control DOM element.

## Example

The following code uses the draw method in a method 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(); }

## See Also

UIControl Members
UIControl Class
MindFusion.Common Namespace