How to do routing in an iframe?
To update route of the parent window through the iframe, you need to send a message from the iframe to the parent window. You can use the method window.top.postMessage to send a message from a child component to a parent component. For example:
window.top.postMessage({for: "workspace-shell", url: "/" }, "*")
message : The message to be sent. Here the message is {for: "workspace-shell", url: "/"} where:
for represents the parent window.url represents the destination URL.
targetOrigin : The URL of the target window. Here the URL is "*".
Note: All the values must be of variable type string.
Set Height and Width of an iframe
To set the height and width of an iframe, add the parameters height and width along with their values in the iframe code block in the file entity-actions.json.