Skip to main content

window.WindowOptions

Configuration for the window to create.

Properties#

alwaysOnTop#

Optional alwaysOnTop: boolean

Whether the window should always be on top of other windows or not.

Defined in: window.ts:699


decorations#

Optional decorations: boolean

Whether the window should have borders and bars or not.

Defined in: window.ts:697


fullscreen#

Optional fullscreen: boolean

Whether the window is in fullscreen mode or not.

Defined in: window.ts:689


height#

Optional height: number

The initial height.

Defined in: window.ts:675


maxHeight#

Optional maxHeight: number

The maximum height. Only applies if maxWidth is also set.

Defined in: window.ts:683


maxWidth#

Optional maxWidth: number

The maximum width. Only applies if maxHeight is also set.

Defined in: window.ts:681


maximized#

Optional maximized: boolean

Whether the window should be maximized upon creation or not.

Defined in: window.ts:693


minHeight#

Optional minHeight: number

The minimum height. Only applies if minWidth is also set.

Defined in: window.ts:679


minWidth#

Optional minWidth: number

The minimum width. Only applies if minHeight is also set.

Defined in: window.ts:677


resizable#

Optional resizable: boolean

Whether the window is resizable or not.

Defined in: window.ts:685


title#

Optional title: string

Window title.

Defined in: window.ts:687


transparent#

Optional transparent: boolean

Whether the window is transparent or not.

Defined in: window.ts:691


url#

Optional url: string

Remote URL or local file path to open, e.g. https://github.com/tauri-apps or path/to/page.html.

Defined in: window.ts:667


visible#

Optional visible: boolean

Whether the window should be immediately visible upon creation or not.

Defined in: window.ts:695


width#

Optional width: number

The initial width.

Defined in: window.ts:673


x#

Optional x: number

The initial vertical position. Only applies if y is also set.

Defined in: window.ts:669


y#

Optional y: number

The initial horizontal position. Only applies if x is also set.

Defined in: window.ts:671