OpenedWindowControls
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
Out extends MessageMap |
In extends MessageMap |
R |
Properties
Section titled “Properties”close: () => void;Returns
Section titled “Returns”void
open: () => void;Call from a click handler (popup blockers require a user gesture).
Returns
Section titled “Returns”void
post: <K>(type, payload) => void;Post to the child; no-op while nothing is open.
Queued until the handshake completes — nothing is dropped while the child loads.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
K extends string |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
type | K |
payload | Out[K] |
Returns
Section titled “Returns”void