Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Service

The Power BI Service embed component, which is the entry point to embed all other Power BI components into your application

export
class

Service

implements

{IService}

Hierarchy

  • Service

Implements

Index

Properties

Private config

The Configuration object for the service

Private embeds

embeds: Embed[]

A list of Dashboard, Report and Tile components that have been embedded using this service instance.

Private router

router: Router

Private uniqueSessionId

uniqueSessionId: string

Static Private components

components: (Report | Tile | Dashboard | Qna | Visual)[] = [Tile,Report,Dashboard,Qna,Visual]

A list of components that this service can embed

Methods

bootstrap

createReport

embed

get

load

  • Given a configuration based on an HTML element, if the component has already been created and attached to the element, reuses the component instance and existing iframe, otherwise creates a new component instance. This is used for the phased embedding API, once element is loaded successfully, one can call 'render' on it.

    Parameters

    Returns Embed

preload

reset

  • Given an HTML element that has a component embedded within it, removes the component from the list of embedded components, removes the association between the element and the component, and removes the iframe.

    Parameters

    Returns void

Object literals

Static Private defaultConfig

defaultConfig: object

The default configuration for the service

autoEmbedOnContentLoaded

autoEmbedOnContentLoaded: false = false

onError

  • onError(...args: [any]): void

Generated using TypeDoc