Adão Ribeiro
Adão Ribeiro

Reputation: 1

Power BI Embed Hide tab page

I have a embed Power Bi on my Aspnet app, I use the JavaScript Api to embed the Power Bi to my view. In my Power Bi I have 4 reports. I need apply a rule to show for some users all 4 reports, and the others show only 1 or 2.

The question is, is there any way to hide the tab so the user can't click? I tried some ways, looking at the Microsoft documentation, but without success.

powerbi

Upvotes: 0

Views: 7563

Answers (1)

Rohit Ronte
Rohit Ronte

Reputation: 129

Yes, You can hide the tab in your embedded report by updating the setting and using navContentPaneEnabled. Please find the below code snippet:

  1. Create new settings:
const newSettings = {
    navContentPaneEnabled: false
};
  1. Update new Settings:
await report.updateSettings(newSettings);

Please find the reference here: https://community.powerbi.com/t5/Developer/How-to-Hide-Power-BI-iFrame-Embedded-Report-Tabs/m-p/121541

Upvotes: 1

Related Questions