Constructor
new PiEmbedActions()
Classes
Namespaces
Members
internalReportEditor :ReportEditor
- ReportEditor
Methods
(static) createDashboard(iframeId, dashboardUrl) → {PiEmbedActions}
Creates an instance of PiEmbedActions
class. This method does not load an instance of the dashboard, it validates and sets the required configuration for the embedded dashboard including its functional areas and features.
Name | Type | Description |
---|---|---|
iframeId | string | The unique identifier for the iframe in which the dashboard is embedded. |
dashboardUrl | string | The URL for the dashboard.
|
- Type:
- PiEmbedActions
// Basic example of how to create a dashboard instance and embed a Report Editor:
// 1. Create a dashboard instance, providing a valid iframeId and dashboardUrl.
const dashboard = PiEmbedActions.createDashboard('iframeId', 'https://pi-dev.uk:8224/pi?lang=en_GB&editorDisplayMode=CONTENT');
// 2. Open a specific report in the editor, providing a valid report id.
dashboard.reportEditor.open(2);