Initializes a new instance of the WindowBase class.
Namespace: MindFusion.Common.UI
File: WindowBase.js
JavaScript Copy Code |
---|
function WindowBase ([element]) |
HTMLElement. The control's associated Dom element.
You do not create WindowBase instances directly but use of the classes that inherit WindowBase like Window.
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"; |