IdentityWindow
Window pop-up handling
Constructor Summary
| Public Constructor | ||
| public |
constructor(props: Object) |
|
Method Summary
| Public Methods | ||
| public |
Close windowed iframe |
|
| public |
Receive ping message and connect the 2 windows if necessary |
|
| public |
init() Initialize an event listener to listen to message from the pop-up |
|
| public |
Check if pop-up window is open |
|
| public |
Load iFrame styling on demand |
|
| public |
Pop-up close callback |
|
| public |
Receive message from window |
|
| public |
Open windowed popup in the center of the screen |
|
| public |
openIframe(url: string, isManageProfile: boolean) Open windowed iframe in body of app |
|
| public |
pingPong() Send ping messages to host window to make sure windows stay connected |
|
| public |
postMessage(message: Object) Send messages to the pop-up |
|
| public |
remove() Remove the pop-up controller |
|
| public |
setSource(source: *) Set the source of the pop-up messages |
|
| public |
setTarget(target: *) Set the target of the pop-up messages |
|
| public |
Subscribe to check if pop-up has closed |
|
| public |
Initialize target window |
|
Public Constructors
Public Methods
public onClose(fromWindow: Boolean): Function source
Pop-up close callback
Params:
| Name | Type | Attribute | Description |
| fromWindow | Boolean |
public onMessage(event: Object) source
Receive message from window
Params:
| Name | Type | Attribute | Description |
| event | Object |
public open(url: string, title: string, w: number, h: number) source
Open windowed popup in the center of the screen
public postMessage(message: Object) source
Send messages to the pop-up
Params:
| Name | Type | Attribute | Description |
| message | Object |
public setSource(source: *) source
Set the source of the pop-up messages
Params:
| Name | Type | Attribute | Description |
| source | * |
public setTarget(target: *) source
Set the target of the pop-up messages
Params:
| Name | Type | Attribute | Description |
| target | * |
Manual
Reference
Source
Test
