MindFusion.Charting for JavaScript Programmer's Guide
Control.height Property
See Also
 






Gets or sets the height of this control.

Namespace: MindFusion.Common
File: Control.js

 Syntax

JavaScript  Copy Code

get height() {}

 Property Value

Unit. The height.

 Example

The following code creates a new instance of the ListView control and sets its width and height to 100 % using the Unit class.

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