string
Defines the ID of the dashboard to be embedded from your Bold BI application.
""
(empty)Example
var dashboard = BoldBI.create({
dashboardId: "5cb065f7-dabb-4b0c-9b45-c60a5730e963"
});
dashboard.loadWidget("efbf2999-f7e7-4831-a492-53c4df394af0");
string
The ID of a div element in which the dashboard will be initialized and rendered.
""
(empty)Example
<div id="container"></div>
<script>
var dashboard = BoldBI.create({
embedContainerId: "container",
});
dashboard.loadWidget("efbf2999-f7e7-4831-a492-53c4df394af0");
</script>
object
There are two types of embedding available: component
and iframe
. In the component type, you will use the embedding SDK to render the dashboard. In the iframe type, you will load the dashboard URL in the iframe and the dashboard will be rendered.
BoldBI.EmbedType.Component
BoldBI.EmbedType.IFrame
BoldBI.EmbedType.Component
Example
var dashboard = BoldBI.create({
embedType: BoldBI.EmbedType.Component,
});
dashboard.loadWidget("efbf2999-f7e7-4831-a492-53c4df394af0");
string
Stores the Embed Authorization API access token to reduce redundant API calls and improve performance.
""
(empty)Example
var dashboard = BoldBI.create({
embedToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImRldm9wc0Bib2xkYmkuY29tIiwidXBuIjouYm9sZGJpZGVtby5jb20vYmkvc2l0ZS9zaXRlMSIsImF1ZCI6Imh0dHBzOi8vaG90Zml4LXdpbmRvd3MuYm9sZGJpZGVtby5jb20vYmkvc2l0ZS9zaXRlMSJ9.JzbqVr6Brv1mAEvnbHnE-FuShos"
});
dashboard.loadWidget("efbf2999-f7e7-4831-a492-53c4df394af0");
object
Specifies the type of Bold BI application, either Cloud or Enterprise edition.
BoldBI.Environment.Cloud
BoldBI.Environment.Enterprise
BoldBI.Environment.Enterprise
Example
var dashboard = BoldBI.create({
environment: BoldBI.Environment.Enterprise
});
dashboard.loadWidget("efbf2999-f7e7-4831-a492-53c4df394af0");
number
Specifies the access token expiration time of the dashboard in seconds.
86400
(24 hours)Example
var dashboard = BoldBI.create({
expirationTime: 100000
});
dashboard.loadWidget("efbf2999-f7e7-4831-a492-53c4df394af0");
string
The URL of the Bold BI application.
""
(empty)Example
var dashboard = BoldBI.create({
serverUrl: "https://mydashboard.com/bi/site/site1",
});
dashboard.loadWidget("efbf2999-f7e7-4831-a492-53c4df394af0");
string
Authenticates the dashboard without implementing the AuthorizeAPI endpoint.
""
(empty)Example
var dashboard = BoldBI.create({
token: "NjQ2ZDgwZjgtN2Q3MS00ZDQwLWFkNTItYTdkNDRhOGE2NmVi", // Use the generated API key
});
dashboard.loadWidget("efbf2999-f7e7-4831-a492-53c4df394af0");
To learn about the available limited supporting methods in embedding.
Array
Specifies the value to set the list of specific widgets from a single dashboard, loaded with a single instance call.
[]
(empty)Example
<div id="dashboard"></div>
<div id="widget1" style="height:500px;width:500px"></div>
<div id="widget2" style="height:500px;width:500px"></div>
<div id="widget3" style="height:500px;width:500px"></div>
<script>
var dashboard = BoldBI.create({
dashboardId: "5cb065f7-dabb-4b0c-9b45-c60a5730e963",
embedContainerId: "dashboard",
widgetList: [{widgetName: "Medal details by Country", containerId: "widget1" },
{widgetName: "Total Medals by Country", containerId: "widget2" },
{widgetName: "Country", containerId: "widget3" }],
});
dashboard.loadWidgets();
</script>
NOTE: We have enhanced the performance of loading multiple widgets in the javascript embedding. Please note that support will work and take effect if the embed SDK Wrapper and Bold BI Server are on the same version effectively from v8.1.41
string
Defines the width of the embedding module in percentages or pixels.
Example
var dashboard = BoldBI.create({
width:"1200px", //The dashboard is now rendered with a width of 1200px.
});
dashboard.loadWidget("efbf2999-f7e7-4831-a492-53c4df394af0");
object
Transmits custom data or header values to the embedding application’s Authorization Server. As a result, you may find this value in the headers of the Authorization Server API.
{}
(empty object)Example
var dashboard = BoldBI.create({
authorizationServer:{
headers: {
"Authorization": "Bearer eDIHDIJAdjakdnajdbaidhoasjasajnsJNININfsbfskdnskdnskdn"
}
}
});
dashboard.loadWidget("efbf2999-f7e7-4831-a492-53c4df394af0");
string
Any application that embeds a Bold BI dashboard and widget needs to authenticate with the Bold BI server. This authentication flow requires sending confidential information such as user email, group details, and embed signature to the Bold BI server. Therefore, you must implement this authentication flow in your server application and provide the URL for connecting to your server in the Bold BI embed instance.
""
(empty)Example
var dashboard = BoldBI.create({
authorizationServer: {
url:"https://serversample.com/embed-details/get",
}
});
dashboard.loadWidget("efbf2999-f7e7-4831-a492-53c4df394af0");
boolean
Specifies whether to show or hide the CSV
export option.
true
Example
var dashboard = BoldBI.create({
settings: {
export: {
csv: true
}
}
});
dashboard.loadWidget("efbf2999-f7e7-4831-a492-53c4df394af0");
boolean
Specifies whether to show or hide the Excel
export option.
true
Example
var dashboard = BoldBI.create({
settings: {
export: {
excel: true
}
}
});
dashboard.loadWidget("efbf2999-f7e7-4831-a492-53c4df394af0");
boolean
Specifies whether to show or hide the Image
export option.
true
Example
var dashboard = BoldBI.create({
settings: {
export: {
image: true
}
}
});
dashboard.loadWidget("efbf2999-f7e7-4831-a492-53c4df394af0");
boolean
Specifies whether to show or hide the PDF
export option.
true
Example
var dashboard = BoldBI.create({
settings: {
export: {
pdf: true
}
}
});
dashboard.loadWidget("efbf2999-f7e7-4831-a492-53c4df394af0");
boolean
Specifies whether to show or hide the Export
icon in widget banner.
true
Example
var dashboard = BoldBI.create({
settings: {
widget: {
export: true
}
}
});
dashboard.loadWidget("efbf2999-f7e7-4831-a492-53c4df394af0");
boolean
Specifies whether to show or hide the Clear Filter
icon in widget banner.
true
Example
var dashboard = BoldBI.create({
settings: {
widget: {
filter: true
}
}
});
dashboard.loadWidget("efbf2999-f7e7-4831-a492-53c4df394af0");
boolean
Specifies whether to show or hide the Maximize
icon in widget banner.
true
Example
var dashboard = BoldBI.create({
settings: {
widget: {
maximize: true
}
}
});
dashboard.loadWidget("efbf2999-f7e7-4831-a492-53c4df394af0");
boolean
Specifies whether to show or hide the Option
icon in widget banner.
true
Example
var dashboard = BoldBI.create({
settings: {
widget: {
moreOption: true
}
}
});
dashboard.loadWidget("efbf2999-f7e7-4831-a492-53c4df394af0");