Search
WindowHost.windows Property
See Also
 






Gets the collection of child Window-s.

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

 Syntax

JavaScript  Copy Code

get windows() {}

 Property Value

ObservableCollection. The collection of child windows.

 Example

The following code creates a new WindowHost, a new Window and adds the window to the windows collection of the host.

JavaScript  Copy Code

// Create a new WindowHost control.
var host = new ui.WindowHost(hostElement);
host.width = new ui.Unit(100, ui.UnitType.Percent);
host.height = new ui.Unit(100, ui.UnitType.Percent);
host.theme = "gray";
..........................
...........................
var window = new ui.Window();
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 = "New Window";

host.windows.add(window);

 See Also