Search
Container Class
See Also
 






A base class for UI container controls.

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

 Syntax

JavaScript  Copy Code

// class
Container.prototype = {}

 Example

The following code creates a new WindowHost and then brings to front the first Window in its windows collection. WindowHost derives from Container:

JavaScript  Copy Code

// create a new instance of the WindowHost control
host = new ui.WindowHost(document.getElementById("host"));
host.width = host.height = new ui.Unit(100, ui.UnitType.Percent);
host.theme = theme;
host.render();

.......
.......

var window = host.windows[0];

if(window != null)
 host.bringToFront(window);

 Inheritance Hierarchy

MindFusion.Common.UI.Control
    MindFusion.Common.UI.Container
        MindFusion.Common.UI.WindowHost

 See Also