Skip to main content
Omni emits the size event when a dashboard loads, and when an embedded app loads or resizes. This allows you to dynamically adjust the iframe height to fit the content. The payload is the same for both, so an existing dashboard resize handler will size an app without changes. An app only emits the event when it fills the whole frame, with no Omni header or navigation around it — which is what SINGLE_CONTENT mode gives you. An app shown with Omni’s chrome doesn’t emit it, because a size that excluded the chrome would make the host clip the page.

Payload

Properties

number
Width of the embedded content in the iframe.
number
Height of the embedded content in the iframe.

Example