MindFusion.Charting for JavaScript Programmer's Guide
Control Class
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

A base class for UI controls.

Namespace: MindFusion.Common
File: Control.js

## Syntax

JavaScript Copy Code
// class Control.prototype = {}

## Example

The following code creates a new instance of the ListView control, which inherits the Control class. Note that the constructor uses a DOM element with an id listView:

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); ........................................ ........................................ }

## Inheritance Hierarchy

MindFusion.Common.Control

## See Also

Control Members
MindFusion.Common Namespace