[ 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

target

Window

The window component that triggered the event.

type

string

The event type. Always change for state changes.

state

Window.State

The new state of the window.

new_state

Window.State

The previous state of the window.

interactive

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
};

Also See: