/** * Copyright (c) 2021 * * Embed pinboard or visualization * https://docs.thoughtspot.com/5.2/app-integrate/embedding-viz/embed-a-viz.html * * @summary Pinboard & viz embed * @author Ayon Ghosh */ import { Action, RuntimeFilter } from '../types'; import { V1Embed, ViewConfig } from './base'; export interface PinboardViewConfig extends ViewConfig { fullHeight?: boolean; disabledActions?: Action[]; disabledActionReason?: string; hiddenActions?: Action[]; enableVizTransformations?: boolean; } export interface PinboardRenderOptions { pinboardId: string; vizId?: string; runtimeFilters?: RuntimeFilter[]; } /** * Embed a ThoughtSpot pinboard or visualization */ export declare class PinboardEmbed extends V1Embed { protected viewConfig: PinboardViewConfig; /** * Construct a map of params to be passed on to the * embedded pinboard or viz */ private getEmbedParams; /** * Construct the URL of the embedded ThoughtSpot pinboard or viz * to be loaded within the iframe * @param pinboardId The GUID of the pinboard * @param vizId The optional GUID of a visualization within the pinboard * @param runtimeFilters A list of runtime filters to be applied to * the pinboard or viz on load */ private getIFrameSrc; private updateIFrameHeight; /** * Render an embedded ThoughtSpot pinboard or viz * @param renderOptions An object specifying the pinboard id, * viz id and the runtime filters */ render({ pinboardId, vizId, runtimeFilters, }: PinboardRenderOptions): PinboardEmbed; }