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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
manash
New Member

Remove an Extension ContextMenu

It's seems, once you add an extension menu, you cannot hide/remove/disable it.  I am wanting to add a context menu when a user selects a bar on a bar chart but then hide it when the user resets the chart so that all bars are highlighted, the context menu is no longer visible.

 

How can I remove it?

 

When I wish to add the context menu:

 

            let newSettings = {
               extensions: [
                {
                  command: {
                    name: "GotoParticipant",
                    title: "Open Participant",
                    extend: {
                      visualContextMenu: {
                        title: "Open Participant",
                      },
                    }
                  }
                } 
              ] 
            };
            embedded.updateSettings(newSettings);
 
When I wish to remove it:

        
embedded.updateSettings({
          extensions: undefined
        });
 

Is this possible without reloading the report?

 

0 REPLIES 0

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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