Embedding the designer enables your users to create and modify dashboards directly within your application.
embedSecret is highly sensitive and should never be exposed in frontend code, browsers, or client applications.<div> in your frontend where the AI Assistant will load.loadDesigner().<div id="dashboard_container_id"></div>
<script>
var boldbiEmbedInstance = BoldBI.create({
serverUrl: "<Bold BI Server URL>",
dashboardId: "<Dashboard Id>",
mode: BoldBI.Mode.Design, // Sets designer mode
embedContainerId: "<Embed Container Id>", // Div ID where dashboard will render
embedToken: "<Embed token retrieved from backend>"
});
boldbiEmbedInstance.loadDesigner();
</script>Note: The same embed token can be used for both the dashboard view and the designer.
| Property | Type | Description |
|---|---|---|
| serverUrl | string | Your Bold BI Server URL (e.g., https://localhost:[portno]/bi/site/site1) |
| dashboardId | string | Unique ID of the dashboard to embed in designer mode. |
| mode | enum | Set to BoldBI.Mode.Design to load the dashboard designer. |
| embedContainerId | string | ID of the element where the designer will render. |
| embedToken | string | Embed token generated from your backend server. |
Note: For advanced designer options (methods, events, theming), refer to the Designer Component Reference.