Class RevealUtility

Utility class used to load dashboards.

Hierarchy

  • RevealUtility

Index

Methods

Static generateUID

  • generateUID(): string
  • Generates a new universal identifier.

    Returns string

    a generated UID

Static loadDashboard

  • loadDashboard(dashboardId: string): Promise<RVDashboard>
  • loadDashboard(dashboardId: string, onSuccess: function, onError: function): void
  • Loads the dashboard with the given ID from the standard endpoint in the server.

    Parameters

    • dashboardId: string

      The ID of the dashboard to open, this ID will be received in the server: IRevealSdkContext.GetDashboardAsync

    Returns Promise<RVDashboard>

  • Parameters

    • dashboardId: string
    • onSuccess: function
    • onError: function
        • (msg: string): void
        • Parameters

          • msg: string

          Returns void

    Returns void

Static loadDashboardFromContainer

  • loadDashboardFromContainer(blob: Blob): Promise<RVDashboard>
  • loadDashboardFromContainer(blob: Blob, onSuccess: function, onError: function, dashboardId?: string): void
  • Loads a dashboard from the Blob object with the contents of a .rdash file.

    Parameters

    • blob: Blob

      The Blob object containing the binary contents of the dashboard in rdash file format.

    Returns Promise<RVDashboard>

  • Parameters

    • blob: Blob
    • onSuccess: function
    • onError: function
        • (msg: string): void
        • Parameters

          • msg: string

          Returns void

    • Optional dashboardId: string

    Returns void