| Name | Type | Description |
|---|---|---|
wm |
WindowManager | optional |
options |
Window~WindowOptions | optional |
Fires:
- event:open
- event:focus
- event:blur
- event:close
- event:maximize
- event:maximize-restore
- event:move
- event:move-start
- event:move-end
- event:resize
- event:resize-start
- event:resize-end
- event:move-x
- event:move-y
- event:resize-width
- event:resize-height
- event:loaded
Classes
Members
-
bottom coordinate of window
-
is window closed?
-
This is the content DOM element. Use this to add content to the Window.
-
height of window
-
right coordinate of window
-
change title
-
width of window
-
This is the top-level DOM element
-
This is the container for the titlebar+content
-
left coordinate
-
top coordinate
Methods
-
attaches window to a side of the screen
Name Type Description direction'horizontal' | 'vertical' location'left' | 'right' | 'top' | 'bottom' -
blur the window
-
centers window in middle of other window or document.body
Name Type Description winWindow optional -
closes the window (can be reopened with open)
-
focus the window
-
Returns:
Type Description boolean -
Name Type Description ignoreClosedboolean optional Returns:
Type Description boolean -
return the state of the window
Name Type Description dataObject from save() -
maximize the window
-
move window
Name Type Description xnumber ynumber -
open the window
Name Type Description noFocusboolean optional do not focus window when opened -
Name Type Description boundsWindowManager~Bounds keepInsideboolean | 'horizontal' | 'vertical' -
resize the window
Name Type Description widthnumber heightnumber -
save the state of the window
Returns:
Type Description Object data -
sends window to back of window-manager
-
send window to front of window-manager
Type Definitions
-
Properties:
Name Type Argument Default Description xnumber <optional>
0 ynumber <optional>
0 widthnumber <optional>
heightnumber <optional>
modalboolean <optional>
openOnCreateboolean <optional>
true id* <optional>
movableboolean <optional>
true resizableboolean <optional>
true maximizableboolean <optional>
true closableboolean <optional>
true noSnapboolean <optional>
don't snap this window or use this window as a snap target titlebarboolean <optional>
true titlebarHeightstring <optional>
36px titleCenterboolean <optional>
minWidthstring <optional>
200px minHeightstring <optional>
60px borderRadiusstring <optional>
4px backgroundModalstring <optional>
rgba(0,0,0,0.6) backgroundWindowstring <optional>
#fefefe backgroundTitlebarActivestring <optional>
#365d98 backgroundTitlebarInactivestring <optional>
#888888 foregroundButtonstring <optional>
#ffffff foregroundTitlestring <optional>
#ffffff stylesObject <optional>
maximizeButtonstring <optional>
... used to replace the graphics for the button closeButtonstring <optional>
... used to replace the graphics for the button resizestring <optional>
... used to replace the graphics for the button
Events
-
Fires when window loses focus
Type:
-
Fires when window closes
Type:
-
Fires when window gains focus
Type:
-
Fires when window is maximized
Type:
-
Fires when window is restored to normal after being maximized
Type:
-
Fires during move
Type:
-
Fires after move completes
Type:
-
Fires when move starts
Type:
-
Fires when x position of window is changed
Type:
-
Fires when y position of window is changed
Type:
-
Fires when window opens
Type:
-
Fires during resizing
Type:
-
Fires after resize completes
Type:
-
Fires when height is changed
Type:
-
Fires when resize starts
Type:
-
Fires when width is changed
Type: