A basic window that wraps a native HTML window. Provides more fine-grained control over the window state such as the ability to minimize, maximize, restore, etc. By default a window does not show upon instantiation; instead the window's show() method must be invoked manually. The new window appears in the same process as the parent window.
The first argument is a Window Options object (see).
Example
var win = new fin.desktop.Window({
name: "childWindow",
url: "child.html",
defaultWidth: 320,
defaultHeight: 320,
defaultTop: 10,
defaultLeft: 300,
frame: false,
resizable: false,
state: "normal"
}, function () {
var _win = win.getNativeWindow();
_win.addEventListener("DOMContentLoaded", function () { win.show(); });
_win.document.querySelector("#output").innerText = "The window has successfully been created.";
}, function (error) {
console.log("Error creating window:", error);
});