Search
WindowHost.minimizeAll Method
See Also
 






Minimizes all child Window-s.

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

 Syntax

JavaScript  Copy Code

function minimizeAll ()

 Example

The following code creates a new WindowHost, a new Window, adds the window to the windows collection of the host and minimizes all child Window-s:

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);
host.minimizeAll();

 See Also