[ type ] WindowEvent

Description:

Represents an event related to a Window and InternalWindow component. Used for handling window state changes
such as activation, minimization, maximization, hiding, showing, and closing.

Type: Object

Properties:

Name Type Description

target

Window | InternalWindow

The window component that triggered the event.

type

string

The event type. One of: activate, deactivate, minimize, restore, closing, close, show.

interactive

boolean

Indicates if the event was triggered by the user's interaction with the window.

Examples:

Example of a WindowEvent object:

const e = {
  target: myWindow,
  type: "activate",
  interactive: true
};

Also See: