Using JavaScript events, you can trigger interactions in your application based on events in an Omni iframe.Documentation Index
Fetch the complete documentation index at: https://docs.omni.co/llms.txt
Use this file to discover all available pages before exploring further.
Event shape
Events emitted by Omni use thepostMessage protocol and will have the following shape:
Listening for events
Subscribe to events in the parent frame with the following:Supported events
Omni currently emits the following events:| Event | Description |
|---|---|
ai:chat-start | Emitted by Omni when an AI chat session begins. |
dashboard:download | Emitted by Omni when a user downloads an embedded dashboard. |
dashboard:filter-changed | Emitted by Omni when a user adds, removes, or updates a filter on an embedded document. |
dashboard:filters | Emitted by Omni when a user applies a filter to an embedded document. |
dashboard:tile-download | Emitted by Omni when a user downloads a given tile on a dashboard. |
dashboard:tile-drill | Emitted by Omni when a user performs a drill action on a dashboard tile. |
error | Emitted by Omni when a detectable error occurs on an embedded page. |
navigation:home | Emitted by Omni when a user clicks the logo or home link in the navigation header. |
page:changed | Emitted by Omni when the URL of a page changes. |
sidebar:open | Emitted by Omni when a user clicks the mobile menu button. |
size | Emitted by Omni on dashboard load to give the size of the frame, allowing users to dynamically size the iframe. |
status | Emitted by Omni to indicate the status of the dashboard to the parent frame. |