JavaScript library for embedding Power BI into your apps. Check out the docs website and wiki for more information.
Перейти к файлу
Ali Abu Foul 8260d9c990 Merged PR 312372: Inject credentials into .npmrc using YML package_sources config instead of npm authenticate task
Previously I added npm authenticate task to the pipeline to inject credentials to the .npmrc.
This task is not compliant to CDPX. I'm switching to YAML instead as mentioned in this [doc](https://onebranch.visualstudio.com/OneBranch/_wiki/wikis/OneBranch.wiki/4787/Consuming-Packages-in-a-CDPx-Pipeline?anchor=npm)
2022-10-12 14:28:36 +00:00
.config/merlinbot Merged PR 165777: Merlin config 2021-05-05 11:17:29 +00:00
.pipelines Merged PR 312372: Inject credentials into .npmrc using YML package_sources config instead of npm authenticate task 2022-10-12 14:28:36 +00:00
demo Merged PR 282084: Remediating Azure Artifacts Configuration Issues in your Repository 2022-08-31 14:31:00 +00:00
dist Merged PR 300806: bump version to 2.22.0, swith to use model version 1.12.1 2022-09-12 17:16:12 +00:00
src Merged PR 300806: bump version to 2.22.0, swith to use model version 1.12.1 2022-09-12 17:16:12 +00:00
test Merged PR 289796: Add QuickCreate SDK 2022-08-31 20:58:15 +00:00
.eslintignore Merged PR 217002: Refactor tests 2021-11-18 07:41:44 +00:00
.eslintrc.js Merged PR 215560: A few ESLint fixes 2021-11-03 07:59:42 +00:00
.gitignore Merged PR 178588: Side channel JS SDK 2021-07-29 11:19:36 +00:00
.npmrc Merged PR 282084: Remediating Azure Artifacts Configuration Issues in your Repository 2022-08-31 14:31:00 +00:00
.travis.yml Merge branch 'master' into release 2016-08-31 12:59:15 -07:00
CONTRIBUTING.md Merged PR 139757: Import github changes 2021-01-18 11:41:12 +00:00
LICENSE.txt Untrack tmpe2e files, rename the LICENSE and README files to be uppercase 2016-06-06 17:45:33 -07:00
NOTICE.txt Add Colors to code 2017-03-07 18:04:56 +02:00
PowerBI.JavaScript.nuspec Merged PR 9241: updating models and copyright 2018-08-28 08:16:34 +00:00
README.md Merged PR 94257: Adding code of conduct link 2020-06-18 11:30:48 +00:00
SECURITY.md Merged PR 144018: Added SECURITY.md 2021-02-03 09:02:02 +00:00
gulpfile.js Merged PR 245022: eventHooks Improvements - Release version 2.20.0 2022-06-14 10:39:21 +00:00
karma.conf.js Merged PR 229897: Remove karma-coverage dependency 2022-01-12 14:35:03 +00:00
owners.txt Merged PR 252540: Remove comments in OE: powerbi-javascript 2022-04-05 08:38:17 +00:00
package.json Merged PR 300806: bump version to 2.22.0, swith to use model version 1.12.1 2022-09-12 17:16:12 +00:00
tsconfig.json Merged PR 125682: Resolve npm audit vulnerabilities, TS v3, migrated to @types 2020-12-04 05:37:17 +00:00
webpack.config.js Merged PR 136313: 2.16.3 global this 2020-12-30 09:23:51 +00:00
webpack.test.config.js Merged PR 217002: Refactor tests 2021-11-18 07:41:44 +00:00
webpack.test.tsconfig.json Merged PR 126798: Migrate to eslint and TypeScript v4 2020-12-30 10:47:16 +00:00

README.md

powerbi-client

JavaScript library for embedding Power BI into your apps.

Build Status NPM Version Nuget Version NPM Total Downloads NPM Monthly Downloads GitHub tag Gitter

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.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments