Window

Creates window control

Syntax

var my_window = new Window( args );

Parameters

Parameter Description
args Object specifying window properties
args.template
  • VT Form control - a bounding box containing a group of controls. This group of controls will be used to construct the window
  • a Group instance - the content of the window will be constructed from this group

args.close_button_style Object.
  • style - Int is a number 1 or 2 - we currently have two styles to choose
    • 1 (default): See style one close button
    • 2: See style two close button
  • icon - String, should be provided in format "url( 'data:image/png;base64,iVBORw0KGgoAAAANSUhE...)" representing a custom image for the window close button to be shown in the upper right corner. If omitted, a default icon is used according to the choosen style property.

All the parameters are not mandatory.
If the window is created with no parameters at all, its default size is 300X200px, and it is positioned when shown in the center of the form.

Description

Window is created, but not shown.

Class Hierarchy

Methods

Method Description
show Shows (opens) the window
showModal Shows (opens) the window in modal mode
hide Hides the window
load Loads the window's content from a template form
loadContent Loads the content of the window from an instance of a Group

Examples

A window created from a template and shown.

See resulting window

See template for the window shown above (template is placed outside the form's bounds)

A window created from an instance of a Group and shown.
A window created from a template and shown above the "anchor control" - a button.

See resulting window

A window created from a template and shown at the specified coordinates (of the left top corner).

See resulting window

A window created from a template and shown below the specified rectangle.

See resulting window

Returns

Reference to created window control.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.