Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PowerBIService

Wrapper for the Microsoft Javascript PowerBI client. This wrapper is browser aware in order to correctly work with AOT and server side rendering. Unfortunately, reports cannot be serverside rendered but will be rendered once the state is shipped to the client.

class

PowerBIService

export
service
injectable

Hierarchy

  • PowerBIService

Index

Constructors

constructor

Properties

Private _isBrowser

_isBrowser: boolean = false

Private _powerBiCoreService

_powerBiCoreService: Service

Private _windowRef

_windowRef: WindowRef

an instance of WindowRef to determine availability of client side context.

Methods

Private HandleBrowserContextError

  • HandleBrowserContextError(): any

embed

  • embed(element: HTMLElement, config: IEmbedConfiguration): Embed
  • Embeds a report into an HTML element.

    memberof

    PowerBIService

    method

    Parameters

    • element: HTMLElement

      Element into which to embed the report.

    • config: IEmbedConfiguration

      Configuration paramters.

    Returns Embed

    • A {@link pbi.Embed} object representing the embeded report.

find

  • find(uniqueId: string): Embed
  • Find a PowerBI report or tile with a given Id.

    memberof

    PowerBIService

    method

    Parameters

    • uniqueId: string

      Id to search for.

    Returns Embed

    • A PowerBI report or tile object matching the id.

get

  • get(element: HTMLElement): Embed
  • Gets the report embeded in an HTML element.

    memberof

    PowerBIService

    method

    Parameters

    • element: HTMLElement

      Element from which to obtain the report.

    Returns Embed

    • A {@link pbi.Embed} object representing the embeded report.

reset

  • reset(element: HTMLElement): void
  • Removes the embeded report from an HTML element.

    memberof

    PowerBIService

    method

    Parameters

    • element: HTMLElement

      Element from which to remove the report.

    Returns void

Generated using TypeDoc