Skip to main content

Options for creating popup windows.

Properties (7)

Property Type Default Required Description
focus⚓︎ boolean true x

If true, the popup window will gain focus when shown and will hide automatically when it loses focus. If false, the popup window won't be on focus when shown and won't hide automatically if it gains and loses focus afterwards. If you set this to false, you will be responsible for implementing the conditions and the mechanism for hiding/closing the popup window.

io.Connect Desktop 10.0
horizontalOffset⚓︎ number x x

Horizontal offset from the target bounds (applied only to left and right target locations).

size⚓︎ Size x

Size of the rendered popup window.

targetBounds⚓︎ Bounds x

Bounds of the area around which the popup will appear.

targetLocation⚓︎ PopupTargetLocation x

Location ("bottom", "top", "left", "right" or "none") where the popup will appear, relative to the defined popup area. If "none" is passed, the popup will appear at { left: 0, top: 0 } of the popup area.

verticalOffset⚓︎ number x x

Vertical offset from the target bounds (applied only to top and bottom target locations).

windowId⚓︎ string x

ID of the window which will be used as a popup window. As of io.Connect Desktop 10.0, the popup window must be a frameless window.