共用方式為


Service class

Power BI 服務內嵌元件,這是將所有其他 Power BI 元件內嵌至應用程式的進入點

屬性

router

方法

bootstrap(HTMLElement, IBootstrapEmbedConfiguration | IComponentEmbedConfiguration)

指定 HTML 元素和 entityType,建立新的元件實例,並啟動 iframe 以進行內嵌。

createReport(HTMLElement, IEmbedConfiguration | IReportCreateConfiguration)

建立新的報表

embed(HTMLElement, IEmbedConfigurationBase | IComponentEmbedConfiguration)

根據 HTML 元素的元件,如果元件已建立並附加至 專案,則重複使用元件實例和現有的 iframe,否則會建立新的元件實例。

get(HTMLElement)

傳回與 項目相關聯的元件實例。

invokeSDKHook(Function, IExtendedRequest, Response)
load(HTMLElement, IEmbedConfigurationBase | IComponentEmbedConfiguration)

根據 HTML 元素的元件,如果元件已建立並附加至 專案,則重複使用元件實例和現有的 iframe,否則會建立新的元件實例。 這用於階段式內嵌 API,一旦成功載入元素,就可以在它上呼叫「轉譯」。

preload(IEmbedConfigurationBase | IComponentEmbedConfiguration, HTMLElement)

適用於暖啟動 powerbi 內嵌端點的 API。 使用此 API 在背景中預先載入 Power BI Embedded。

quickCreate(HTMLElement, IQuickCreateConfiguration)

建立新的數據集

reset(HTMLElement)

假設有內嵌元件的 HTML 元素,請從內嵌元件清單中移除元件、移除專案與元件之間的關聯,以及移除 iframe。

屬性詳細資料

router

router: Router

屬性值

Router

方法詳細資料

bootstrap(HTMLElement, IBootstrapEmbedConfiguration | IComponentEmbedConfiguration)

指定 HTML 元素和 entityType,建立新的元件實例,並啟動 iframe 以進行內嵌。

function bootstrap(element: HTMLElement, config: IBootstrapEmbedConfiguration | IComponentEmbedConfiguration): Embed

參數

element

HTMLElement

傳回

Embed

createReport(HTMLElement, IEmbedConfiguration | IReportCreateConfiguration)

建立新的報表

function createReport(element: HTMLElement, config?: IEmbedConfiguration | IReportCreateConfiguration): Embed

參數

element

HTMLElement

傳回

Embed

embed(HTMLElement, IEmbedConfigurationBase | IComponentEmbedConfiguration)

根據 HTML 元素的元件,如果元件已建立並附加至 專案,則重複使用元件實例和現有的 iframe,否則會建立新的元件實例。

function embed(element: HTMLElement, config?: IEmbedConfigurationBase | IComponentEmbedConfiguration): Embed

參數

element

HTMLElement

傳回

Embed

get(HTMLElement)

傳回與 項目相關聯的元件實例。

function get(element: HTMLElement): Embed

參數

element

HTMLElement

傳回

Embed

invokeSDKHook(Function, IExtendedRequest, Response)

function invokeSDKHook(hook: Function, req: IExtendedRequest, res: Response): Promise<void>

參數

hook

Function

req

IExtendedRequest

res

Response

傳回

Promise<void>

load(HTMLElement, IEmbedConfigurationBase | IComponentEmbedConfiguration)

根據 HTML 元素的元件,如果元件已建立並附加至 專案,則重複使用元件實例和現有的 iframe,否則會建立新的元件實例。 這用於階段式內嵌 API,一旦成功載入元素,就可以在它上呼叫「轉譯」。

function load(element: HTMLElement, config?: IEmbedConfigurationBase | IComponentEmbedConfiguration): Embed

參數

element

HTMLElement

傳回

Embed

preload(IEmbedConfigurationBase | IComponentEmbedConfiguration, HTMLElement)

適用於暖啟動 powerbi 內嵌端點的 API。 使用此 API 在背景中預先載入 Power BI Embedded。

function preload(config?: IEmbedConfigurationBase | IComponentEmbedConfiguration, element?: HTMLElement): HTMLIFrameElement

參數

element

HTMLElement

傳回

HTMLIFrameElement

quickCreate(HTMLElement, IQuickCreateConfiguration)

建立新的數據集

function quickCreate(element: HTMLElement, config?: IQuickCreateConfiguration): Embed

參數

element

HTMLElement

傳回

Embed

reset(HTMLElement)

假設有內嵌元件的 HTML 元素,請從內嵌元件清單中移除元件、移除專案與元件之間的關聯,以及移除 iframe。

function reset(element: HTMLElement)

參數

element

HTMLElement