72a7c5500c | ||
---|---|---|
.vscode | ||
demo | ||
dist | ||
src | ||
test | ||
.gitignore | ||
.travis.yml | ||
CHANGELOG.md | ||
CONTRIBUTING.md | ||
LICENSE.txt | ||
NOTICE.txt | ||
PowerBI.JavaScript.nuspec | ||
README.md | ||
gulpfile.js | ||
karma.conf.js | ||
package.json | ||
tsconfig.json | ||
tslint.json | ||
typings.json | ||
webpack.config.js | ||
webpack.test.config.js | ||
webpack.test.tsconfig.json |
README.md
powerbi-client
JavaScript library for embedding Power BI into your apps.
Wiki
See the wiki for more details about embedding, service configuration, setting a default page, page navigation, dynamically applying filters, and more.
Code Docs
See the code docs for detailed information about classes, interfaces, types, etc.
Demo
New live demo for a sample application using the powerbi-client
library in scenarios such as page navigation, applying filters, updating settings, and more.
Installation
Install via Nuget:
Install-Package Microsoft.PowerBI.JavaScript
Install from NPM:
npm install --save powerbi-client
Installing beta versions:
npm install --save powerbi-client@beta
Include the library via import or manually
Ideally you would use a module loader or a compilation step to import using ES6 modules as:
import * as pbi from 'powerbi-client';
However, the library is exported as a Universal Module and the powerbi.js script can be included before your app's closing </body>
tag as:
<script src="/powerbi-client/dist/powerbi.js"></script>
When included directly, the library is exposed as a global named powerbi-client
.
There is also another global named powerbi
which is an instance of the service.