new Window(options, callbackopt, errorCallbackopt)
Creates a new OpenFin Window
A basic window that wraps a native HTML window. Provides more fine-grained control over the window state such as the ability to minimize, maximize, restore, etc. By default a window does not show upon instantiation; instead the window's show() method must be invoked manually. The new window appears in the same process as the parent window.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
Object | The options of the window. See the tutorial. |
|
callback |
fin.desktop.Window~successCallback |
<optional> |
called if the method succeeds. See success callback for shape. |
errorCallback |
fin.desktop.Window~errorCallback |
<optional> |
called if there is a network error. See error callback for shape. |
- Tutorials:
Members
(inner) constructorError :Object
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
networkErrorCode |
number | The network error code from Chrome |
stack |
string | Callstack for the error |
message |
string | The message string from the error |
(inner) constructorSuccess :Object
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
httpResponseCode |
number |
Type Definitions
errorCallback(reason, errorObj)
Called if there was an error during window creation
Parameters:
Name | Type | Description |
---|---|---|
reason |
string | The reason of the error |
errorObj |
fin.desktop.Window~constructorError |
successCallback(successObj)
Called if the window creation was successful
Parameters:
Name | Type | Description |
---|---|---|
successObj |
fin.desktop.Window~constructorSuccess |