Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago

Missing Navigation Pane in Mobile Layout Powerbi Ebedded

i cant show navigation pane in mobile layout even with this config it only works in desktop layout

settings: {
navContentPaneEnabled: true,
layoutType: models.LayoutType.MobileLandscape,
panes: {
filters: {
visible: false
},
pageNavigation: {
visible: true,
position: 1
}
}
}, 

 

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi  Anonymous ,

     

    You can try to follow this example to write embed code:

    Embedding a Power BI report with mobile layout in Power BI embedded analytics | Microsoft Learn

    // Get models. models contains enums that can be used.
    var models = window['powerbi-client'].models;
    var embedConfiguration = {
        type: 'report',
        id: reportId,
        embedUrl: embedUrl,
        tokenType: tokenType,
        accessToken: accessToken,
        settings: {
            layoutType: models.LayoutType.MobilePortrait
        }
    };

     

    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.

    • Anonymous's avatar
      Anonymous
      Not applicable

      I am using that code , but doesnt appear the navigation pane, only on desktop layout it appear