Tutorial: windowOptions

windowOptions

accelerator

Enable keyboard shortcuts for devtools and zoom. Default: false for both.

accelerator: {
    devtools: false,
    zoom: false
}
alwaysOnTop Updatable

A flag to always position the window at the top of the window stack. Default: false.

autoShow

A flag to automatically show the Window when it is created. Default: false.

contextMenu Updatable

A flag to show the context menu when right-clicking on a window. Gives access to the Developer Console for the Window. Default: true

cornerRounding Updatable

This defines and applies rounded corners for a frameless window. Default for both width and height: 0.

cornerRounding: {
    width: 0,
    height: 0
}
customData

A field that the user can attach serializable data to to be ferried around with the window options. Default: ''.

defaultCentered

Specifies that the window will be positioned in the center of the primary monitor when loaded for the first time on a machine. When the window corresponding to that id is loaded again, the position from before the window was closed is used. This option overrides defaultLeft and defaultTop. Default: false.

defaultHeight

The default height of the window. Specifies the height of the window when loaded for the first time on a machine. When the window corresponding to that id is loaded again, the height is taken to be the last height of the window before it was closed. Default: 500.

defaultLeft

The default left position of the window. Specifies the position of the left of the window when loaded for the first time on a machine. When the window corresponding to that id is loaded again, the value of left is taken to be the last value before the window was closed. Default: 100.

defaultTop

The default top position of the window. Specifies the position of the top of the window when loaded for the first time on a machine. When the window corresponding to that id is loaded again, the value of top is taken to be the last value before the window was closed. Default: 100.

defaultWidth

The default width of the window. Specifies the width of the window when loaded for the first time on a machine. When the window corresponding to that id is loaded again, the width is taken to be the last width of the window before it was closed. Default: 800.

frame Updatable

A flag to show the frame. Default: true.

hideOnClose Updatable

A flag to allow a window to be hidden when the close button is clicked. Default: false.

icon Updatable

A URL for the icon to be shown in the window title bar and the taskbar. Default: The parent application's applicationIcon.

maxHeight Updatable

The maximum height of a window. Will default to the OS defined value if set to -1. Default: -1.

maximizable Updatable

A flag that lets the window be maximized. Default: true.

maxWidth Updatable

The maximum width of a window. Will default to the OS defined value if set to -1. Default: -1.

minHeight Updatable

The minimum height of a window. Default: 0.

minimizable Updatable

A flag that lets the window be minimized. Default: true.

minWidth Updatable

The minimum width of a window. Default: 0.

name

The name for the window which must be unique within the context of the invoking Application.

opacity Updatable

A flag that specifies how transparent the window will be. This value is clamped between 0.0 and 1.0. Default: 1.0.

resizable Updatable

A flag to drop to allow the user to resize the window. Default: true.

resizeRegion Updatable

Defines a region in pixels that will respond to user mouse interaction for resizing a frameless window.

resizeRegion: {
    size: 2, //The size in pixels (Default: 2),
    bottomRightCorner: 4 //The size in pixels of an additional 
                         //square resizable region located at the 
                         //bottom right corner of a 
                         //frameless window. (Default: 4)
}
showTaskbarIcon

A flag to show the Window's icon in the taskbar. Default: true.

saveWindowState

A flag to cache the location of the window or not. Default: true.

taskbarIconGroup

Specify a taskbar group for the window. Default: app's uuid.

state

A string that sets the window to be "minimized", "maximized", or "normal" on creation. Default: "normal".

url

The URL of the window. Default: "about:blank".

waitForPageLoad

When set to false, the window will render before the "load" event is fired on the content's window. Caution, when false you will see an initial empty white window. Default: true.