πEmbed events
Overview
1. Setting Up the Event Bridge
How It Works
Example Setup
// Listen for all events from the dashboard iframe
window.addEventListener("message", (event) => {
// Optional: validate origin
// if (event.origin !== "https://sprinkledata_example.com") return;
const { type, payload, source } = event.data || {};
if (source !== "SPRINKLE-DASHBOARD") return;
console.log("Dashboard Event:", type, payload);
});2. Event Structure
Field Descriptions
Field
Description
3. Event Types
4. Event Payload Details
5. Example: Handling Dashboard Events in Your App
Last updated