Search
Window Constructor
See Also
 






Initializes a new instance of the Window class.

Namespace: MindFusion.Common.UI
File: Window.js

 Syntax

JavaScript  Copy Code

function Window ([element])

 Parameters

element
Optional.

HTMLElement. The control's associated Dom element.

 Example

The following code creates a new Window using a <div> element called windowElement defined in a web page:

JavaScript  Copy Code
var window = new ui.Window(windowElement);
window.top = ui.Unit.percentage(25);
window.left = ui.Unit.percentage(25);
window.minWidth = ui.Unit.pixel(600);
window.minHeight = ui.Unit.pixel(600);
window.useFrameTitle = true;
window.data = chartItem.item;
window.templateUrl = "ChatWindow.html";
window.iconSrc = "icons\chart.png";

 See Also