JQuery plugin which wraps the PowerBI-Javascript library and accepts configuration object directly. This makes embedding Power BI visuals similar to using other jQuery plugins.
For a demonstration of this library see the sample: powerbi-sample-client-jquery (COMING SOON!)
Note: The type property which indicates the type of the object you are embedding. In this case it we are embedding a report so the type is ‘report’.
There are other options that can be passed such as filterPaneEnabled, see the PowerBI-JavaScript repository for more information.
PowerBI-JQuery
JQuery plugin which wraps the PowerBI-Javascript library and accepts configuration object directly. This makes embedding Power BI visuals similar to using other jQuery plugins.
For a demonstration of this library see the sample: powerbi-sample-client-jquery (COMING SOON!)
Getting started:
Installation
Install via NPM:
npm install --save jquery-powerbiInstall via Bower:
bower install --save jquery-powerbiInclude scripts:
Note: You can find out more about powerbi.js from the PowerBI-JavaScript repository.
Embed report in element using plugin
Index.html
App.js
Note the object that you pass to the powerbi plugin function must have the following properties but there may be more:
Note: The
typeproperty which indicates the type of the object you are embedding. In this case it we are embedding a report so the type is ‘report’. There are other options that can be passed such asfilterPaneEnabled, see the PowerBI-JavaScript repository for more information.