ramandeep-singh-1983 / ngx-powerbi

TypeScript library for embedding Power BI assets (reports/dashboards/tiles) in your application. This TypeScript library is built on top of the official powerbi-client library provided by Microsoft.
MIT License
36 stars 22 forks source link

ngx-component options #22

Closed afviola closed 4 years ago

afviola commented 4 years ago

Hello,

I'm using the ngx-powerbi-component as below. Question: how do I pass the filterPaneEnabled and navContentPaneEnabled parameters to it?

<ngx-powerbi-component type=" id="..." embedUrl="https://app.powerbi.com/...." tokenType="embed" accessToken="token" </ngx-powerbi-component>

Thanks!

ramandeep-singh-1983 commented 4 years ago

@afviola, you are using method 1 as per the readme. You need to use method 2 or 3 as mentioned in the readme for configuring the said options.

afviola commented 4 years ago

I did the following to make it work:

`<ngx-powerbi-component [type]="type" [id]="id" [embedUrl]="embedUrl" [tokenType]="tokenType" [accessToken]="accessToken" on-embedded="onEmbedded($event)" [options]="options">

` // page.ts options = { filterPaneEnabled: false, navContentPaneEnabled: false }; Thank you so much for this library!
ramandeep-singh-1983 commented 4 years ago

Thanks for updating about the status of your issue!