MindFusion.Charting for JavaScript Programmer's Guide
Control.render Method
See Also
 






Draws the control and prepares it for user interaction.

Namespace: MindFusion.Common
File: Control.js

 Syntax

JavaScript  Copy Code

function render ()

 Example

The following code uses the render method to show a ListView that was created  programmatically:

JavaScript  Copy Code

var ui = MindFusion.UI;

var listView;
var host;
var theme = "gray";

document.addEventListener("DOMContentLoaded", function ()
{
 listView = new ui.ListView(document.getElementById("listView"));
 listView.width = listView.height = ui.Unit.percentage(100);
 listView.theme = theme;
 listView.itemSize = ui.Unit.pixel(100);
 listView.itemDoubleClick.addEventListener(handleItemDoubleClick);
 ........................................
 ........................................
 listView.render();
}

 See Also

Control Members
Control Class
MindFusion.Common Namespace