Forum Discussion
tks1011
1 year agoFrequent Visitor
Customizing Embedded Report Toolbar Icons
Is there a way to hide specific toolbar icons inside the embedded PowerBI report:
Anonymous
1 year agoNot applicable
Hi tks1011 ,
Please review the following links, I hope they will assist you in achieving the requirement.
Configure embedded report settings | Microsoft Learn
var models = window['powerbi-client'].models;
var embedConfiguration = {
type: 'report',
id: '<Your Report ID>',
embedUrl: '<Your Embed URL>',
accessToken: '<Your Access Token>',
tokenType: models.TokenType.Embed,
settings: {
panes: {
filters: {
visible: false
},
pageNavigation: {
visible: false
}
},
navContentPaneEnabled: false,
layoutType: models.LayoutType.Custom,
customLayout: {
displayOption: models.DisplayOption.FitToWidth
},
toolbar: {
visible: true,
exportData: false,
bookmarks: false,
filters: false,
comments: false,
custom: [{
name: "customButton",
title: "Custom Button",
icon: "<svg>...</svg>",
tooltip: "Click this custom button",
onAction: function() {
console.log("Custom button clicked");
}
}]
}
}
};
Best Regards