embed-javascript-events-api
Looker Embed JavaScript Events
This skill enables agents to assist users in implementing and troubleshooting interactive communication between a host application and an embedded Looker iframe using JavaScript events.
Overview
Looker embedding uses the HTML5 postMessage API to pass messages between the host page and the Looker iframe. This allows for:
- Event Monitoring: Detecting when a dashboard starts/finishes running, when filters change, or when a user navigates.
- Bi-directional Control: Sending commands (actions) from the host app into Looker to trigger runs, update filters, or change layouts.
1. Listening for Events
The host application must listen for message events on the window object.
Implementation Pattern
window.addEventListener("message", function (event) {
// 1. ALWAYS verify the origin for security
if (event.origin !== "https://your_company.looker.com") return;
// 2. Verify the source is the Looker iframe
More from lkrdev/looker-embed-skills
cors-api
Architectural pattern for direct browser-to-Looker API calls via CORS using OAuth2 with PKCE for secure client-side authentication.
2ca-adk-streaming
This skill enables agents to assist users in building streaming, data-driven agentic applications using the Looker Conversational Analytics (CA) API and Google ADK. Use this when you need to orchestrate multi-step data workflows with real-time feedback and conditional post-processing (e.g., visualization, analysis).
2sso-embed
This skill allows agents to assist users in setting up, implementing, and troubleshooting Looker SSO (signed) and Cookieless embedding using the Looker Embed SDK.
2embed-themes
This skill enables agents to assist users in programmatically creating, updating, and managing Looker themes using the Looker API. Use this when you need to automate visual styling, implement brand-specific themes, or manage instance-wide default themes.
2cors-api-proxy
Architectural pattern for performing direct browser-to-Looker API calls via CORS by using an application backend to delegate scoped authentication tokens.
2visualization-components
This skill enables agents to assist users in building custom, high-performance data experiences using Looker's React-based visualization components.
2