closeOperation([operation])

Class: Window.

Description:

Sets or gets the operation to perform when a Window close button is clicked by a user or a close() method is called on this Window.

Parameters:

Name Type Description

[operation]

Window.CloseOperation

One of Window.CloseOperation enum values.

Returns:

Returns this component if argument is provided, otherwise returns value.

Type: Window | Window.CloseOperation