[ type ] WindowStateEvent
Description:
Represents a window state change event. Used when a window changes its state
such as minimized, maximized, or restored.
Type: Object
Properties:
| Name | Type | Description |
|---|---|---|
|
The window component that triggered the event. |
|
|
string | The event type. Always |
|
The new state of the window. |
|
|
The previous state of the window. |
|
|
boolean | Indicates if the state change was triggered by the user's interaction with the window. |
Examples:
Example of a WindowStateEvent object:
const e = {
target: myWindow,
type: "change",
fromState: Window.State.Minimized,
toState: Window.State.Normal,
interactive: true
};
