Search
WindowBase Constructor
See Also
 






Initializes a new instance of the WindowBase class.

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

 Syntax

JavaScript  Copy Code

function WindowBase ([element])

 Parameters

element
Optional.

HTMLElement. The control's associated Dom element.

 Remarks

You do not create WindowBase instances directly but use of the classes that inherit WindowBase like Window.

 Example

The following code creates a new Window. The Window class derives from WindowBase.

JavaScript  Copy Code
var window = new ui.Window(document.getElementById("windowElement"));
window.top = ui.Unit.percentage(25);
window.left = ui.Unit.percentage(25);
window.width = ui.Unit.pixel(400);
window.height = new ui.Unit.pixel(300);
window.title = clickedItem.title;
window.data = clickedItem.item;
window.templateUrl = "ChatWindow.html";

 See Also