[ static enum ] CloseOperation

Class: Window.

Description:

Represents the behavior when a close button is clicked or close() method is called.
Applies to Window and InternalWindow components.

Type: number

Properties:

Name Description

Nothing

Do nothing; the close button has no effect.

Hide

Hide the window instead of closing it.

Dispose

Release window resources and remove it from display.

Exit

Terminate the entire application.

Examples:

window.closeOperation(Window.CloseOperation.Exit); // setting most common window close operation

Also See: