Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
DavideBono97
Frequent Visitor

PowerBI Embedded Bookmark - Api client Javascript

Hi
I'm embedding a Power BI report using the JavaScript API and want to know if there's a way to set the Bookmark Pane to be collapsed by default when the report loads. Ideally, I'd like to control this programmatically so that users see the pane in a collapsed state initially, but can expand it if needed.

Is there any setting or method in the Power BI JavaScript API that allows configuring the initial state of the Bookmark Pane?

I would like to set the Bookmarks bar to be collapsed by default

I use this code for see Bookmark Pane on my Embedded report :

 

  panes : {
      bookmarks: {
         visible: true 
      } 
    }

 

 Thanks in advance

1 REPLY 1
Anonymous
Not applicable

Hi  @DavideBono97 ,

 

It seems that the API does not support the functionality to collapse bookmarks by default. However, you can try using visible: false and report.updateSettings in the code to toggle the visibility of the bookmark pane, allowing you to dynamically show or hide bookmarks.

Configure embedded report settings | Microsoft Learn

Update report settings at runtime in Power BI embedded analytics | Microsoft Learn

 

This is the related document, you can view this content:

Report Layout in Power BI Embedded | Microsoft Learn

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.