Chat with the Bold BI Sales team now!
Click to apply any setting changes above.
Code snippet that enables this functionality.
function renderDashboard() {
var boldbiEmbedInstance = BoldBI.create({
// Write a code block to perform an operation before the dashboard context menu is rendered.
// Here we show an example of adding a new item to the dashboard context menu.
beforeContextMenuRender: function(args){
var value = { id : "customoption", text: "Custom Option" };
args.iconsinformation[0].items.push(value);
}
// Here we show an example of which banner Icon is clicked based on the ID.
dashboardSettings: {
onIconClick: function (args) {
if(args.event.ID == "customoption")
{
// Write a code block to perform an operation after a banner icon or context menu option is clicked.
}
}
}
});
boldbiEmbedInstance.loadDashboard();
}