Created by Pavel Klavík
Use window.postMessage, see https://developer.mozilla.org/en-US/docs/Web/API/Window/message_event.
Displays the given location in the opened OrgPage:
{
"type": "set-location",
"location": <location-id>
}Sends a message to another embedded website whose id is <target-id>. The website receives <arbitrary data> as message JS event.
{
"type": "send-message",
"target": <target-id>,
"message": <arbitrary data>
}If the embed is not currently visible, the cell opens first and receives the message after embed loads.
We have created two examples you can see in this document: