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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
v-yangliu-msft
Community Support
Community Support

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.