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
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:
| Name | Type | Attributes | Description |
|---|---|---|---|
enforce | boolean | <optional> | To enable border enforcement set |
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
thiscomponent instance. If getting, returns selected InternalWindow ornull(if there are no windows added yet).
- Type:
- InternalWindowContainer |
InternalWindow | null