Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LookerEmbedDashboard

Convenience type to aid migration from Looker 1.8.x to 2.0.0. In 1.8 this is a class that is treated as a type.

deprecated

use ILookerConnection

Hierarchy

Index

Methods

  • edit(): void
  • getLookerVersion(): number
  • Returns a decimal representation of the major and minor version of the Looker instance that has been embedded. The patch version is ignored.

    The value returned is -1 for Looker versions < 25.2.

    The value returned for 25.2.45 is 25.2

    Returns number

  • hasSessionExpired(): boolean
  • isEditing(): boolean
  • loadDashboard(id: string, pushHistory?: boolean): Promise<void>
  • Load Looker dashboard. This does not recreate the IFRAME.

    For Looker 25.2 or greater it fires the new page:load event. For Looker < 25.2 it fires the legacy dashboard:load event.

    Parameters

    • id: string
    • Optional pushHistory: boolean

    Returns Promise<void>

  • loadExplore(id: string, pushHistory?: boolean): Promise<void>
  • Load Looker explore. This does not recreate the IFRAME.

    Requires Looker 25.2 or greater. An error is thrown if unsupported Looker version.

    Parameters

    • id: string
    • Optional pushHistory: boolean

    Returns Promise<void>

  • loadExtension(id: string, pushHistory?: boolean): Promise<void>
  • Load Looker extension. This does not recreate the IFRAME.

    Requires Looker 25.2 or greater. An error is thrown if unsupported Looker version.

    Parameters

    • id: string
    • Optional pushHistory: boolean

    Returns Promise<void>

  • loadLook(id: string, pushHistory?: boolean): Promise<void>
  • Load Looker look. This does not recreate the IFRAME.

    Requires Looker 25.2 or greater. An error is thrown if unsupported Looker version.

    Parameters

    • id: string
    • Optional pushHistory: boolean

    Returns Promise<void>

  • loadMergeQuery(id: string, pushHistory?: boolean): Promise<void>
  • Load Looker merge query. This does not recreate the IFRAME.

    Requires Looker 25.2 or greater. An error is thrown if unsupported Looker version.

    Parameters

    • id: string
    • Optional pushHistory: boolean

    Returns Promise<void>

  • loadQuery(model: string, view: string, qid: string, pushHistory?: boolean): Promise<void>
  • Load query. This does not recreate the IFRAME.

    Requires Looker 25.2 or greater. An error is thrown if unsupported Looker version.

    Parameters

    • model: string
    • view: string
    • qid: string
    • Optional pushHistory: boolean

    Returns Promise<void>

  • loadQueryVisualization(id: string, pushHistory?: boolean): Promise<void>
  • Load Looker query visualization. This does not recreate the IFRAME.

    Requires Looker 25.2 or greater. An error is thrown if unsupported Looker version.

    Parameters

    • id: string
    • Optional pushHistory: boolean

    Returns Promise<void>

  • loadReport(id: string, pushHistory?: boolean): Promise<void>
  • Load Looker report. This does not recreate the IFRAME.

    Requires Looker 25.2 or greater. An error is thrown if unsupported Looker version.

    Parameters

    • id: string
    • Optional pushHistory: boolean

    Returns Promise<void>

  • Load Looker object using a URL. This does not recreate the IFRAME.

    Requires Looker 25.2 or greater. An error is thrown for unsupported Looker versions.

    Parameters

    Returns Promise<void>

  • openScheduleDialog(): Promise<void>
  • preload(): Promise<void>
  • Render the preload page. This does not recreate the IFRAME.

    Requires Looker 25.2 or greater. An error is thrown if unsupported Looker version.

    Returns Promise<void>

  • run(): void
  • send(message: string, params?: any): void
  • Send a message to the embedded content.

    Parameters

    • message: string

      String message identifier.

    • Optional params: any

      Additional parameters to be sent to the client. After transmission ownership of the parameters is transferred to the embedded Explore.

    Returns void

  • sendAndReceive(message: string, params?: any): Promise<any>
  • Send a message to the embedded content and resolve with a response

    Parameters

    • message: string

      String message identifier.

    • Optional params: any

      Additional parameters to be sent to the client. After transmission ownership of the parameters is transferred to the embedded Explore.

    Returns Promise<any>

  • stop(): void

Generated using TypeDoc