Block Client API
Block Callback FuncOpenPopup1
Requests to open a popup (HTML5 modal dialog) displaying a given URL.
| Kind | Block Callback |
|---|---|
| Method | postMessage |
| Message Data | { "bubblehouseBlockClientCall": "OpenPopup1", ... } |
Input
-
instancestring requiredBlock instance identifier passed to the Blocks API.
Empty string if an instance identifier has not been provided.
-
urlstring requiredURL of the popup block to open.
This URL is gonna refer to a Bubblehouse Block. It will already have
authpopulated with the same token you have passed to the opener block.IMPORTANT: You are expected to generate a unique block instance identifier and add it to the URL as
instancequery parameter. -
namestring requiredName of the block to open.
You don't need to do anything with this value (because the URL already encodes the block name). It is provided to aid in naming and debugging.
-
dialogStylestring requiredCSS styles to apply to the DIALOG element.
Set your new HTML5 dialog's
styleproperty to this value. -
frameStylestring requiredCSS styles to apply to the IFRAME element.
Set your new iframe's
styleproperty to this value.