InternalWindowContainer

InternalWindowContainer UI component, extends UIComponent class. Internal window container is a component designed to contain InternalWindow components.

For more methods for this component check UIComponent class.

Constructor

new InternalWindowContainer()

InternalWindowContainer constructor.

Example
const container = new InternalWindowContainer().size(600, 500).addTo(window);
const win1 = new InternalWindow("New Window Title").addTo(container);

Classes

InternalWindowContainer

Methods

enforceBoundaries(enforceopt) → {InternalWindowContainer|boolean}

Prevents internal windows from being moved outside of visible area of window container. Otherwise windows can be move beyond the boundaries and scroll bars would appear to scroll to those windows. This may not work on some systems yet.

Parameters:
NameTypeAttributesDescription
enforceboolean<optional>

To enable border enforcement set true, to disable set `false.

Returns:

If setting, returns this component instance, otherwise returns boolean value.

Type: 
InternalWindowContainer | boolean

selected() → {InternalWindowContainer|InternalWindow|null}

Sets or gets currently selected and top most window InternalWindow.

Returns:
  • If setting, returns this component instance. If getting, returns selected InternalWindow or null (if there are no windows added yet).
Type: 
InternalWindowContainer | InternalWindow | null