Search
UIControl.draw Method
See Also
 






Draws the control.

Namespace: MindFusion.DataViews
File: UIControl.js

 Syntax

JavaScript  Copy Code

function draw ()

 Return Value

HTMLElement. The control DOM element.

 Example

The following code creates a Grid programmatically and calls its draw and attach methods to add it to the tree of DOM elements of the web page:

JavaScript  Copy Code

// create the grid control
var dv = MindFusion.DataViews;

var grid = new dv.Grid();
document.getElementById("gridElement").appendChild(grid.draw());
grid.attach();

 See Also