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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.