Bootstrap.embedView Method

Embeds a view (dashboard, report, etc.) in the given DOM element.
 

Parameters

element

Type: HTMLElement
The HTML element to render the view in.
viewId

Type: String
The ID of the view to use.
options

Type: Object
 (optional)
     sessionId                   [type: String, optional: true]                              - (optional) A session ID to automatically use to set the session on the bootstrap.

     embeddedViewServiceName     [type: String, optional: true]                              - (optional) If multiple items are being embedded, an embedded
                                                                                                 view service is required for each. The name of the one to be generated can be specified with this argument.

     viewType                    [type: dundas.entities.ViewType, optional: true]            - (optional) By default, dundas.entities.ViewType.DASHBOARD is used. But if
                                                                                                 the ID is from another type it must be provided.

     viewOverrides               [type: dundas.view.controls.ViewOverrides, optional: true]  - (optional) The view overrides to apply to the view before it loads, if provided.
 

Optional: True

Return Value


Type: jQuery.Promise
A promise object that is resolved when the call is complete.