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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
DavideBono97
Helper I
Helper I

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.