A set of EmberJS components to seamlessly embed Power BI components into web based applications
Перейти к файлу
Matt Mazzola a682b31662 Update README.md with link to node express server sample 2016-09-15 13:34:58 -07:00
.vscode Update addon components and tests for use newer version of powerbi-client package. 2016-04-26 16:55:30 -07:00
addon Update service to expose get and find. Update components to call onEmbedded action if provided 2016-07-20 13:21:35 -07:00
app Replace {{ms-powerbi-report}} with {{powebi-report}} Update README.md 2016-04-18 15:53:50 -07:00
blueprints Fix the addBowerPackage version to use separate argument for beta since previous format is deprecated 2016-04-27 11:16:25 -07:00
config Add ghpages deployment configuration to use locationType: hash 2016-08-15 15:02:06 -07:00
tests Change updateSettings (scenario6) to use prod. 2016-09-13 11:09:14 -07:00
vendor Add another powerbi-client shim to give access to whole library instead of instead of only instance of service 2016-07-20 13:20:42 -07:00
.bowerrc Initial Commit from Ember CLI v2.4.3 2016-04-08 16:44:31 -07:00
.editorconfig Initial Commit from Ember CLI v2.4.3 2016-04-08 16:44:31 -07:00
.ember-cli Initial Commit from Ember CLI v2.4.3 2016-04-08 16:44:31 -07:00
.gitignore Initial Commit from Ember CLI v2.4.3 2016-04-08 16:44:31 -07:00
.jshintrc Initial Commit from Ember CLI v2.4.3 2016-04-08 16:44:31 -07:00
.npmignore Initial Commit from Ember CLI v2.4.3 2016-04-08 16:44:31 -07:00
.travis.yml Initial Commit from Ember CLI v2.4.3 2016-04-08 16:44:31 -07:00
.watchmanconfig Initial Commit from Ember CLI v2.4.3 2016-04-08 16:44:31 -07:00
LICENSE.md Update LICENSE with OSS project name 2016-06-07 13:28:52 -07:00
README.md Update README.md with link to node express server sample 2016-09-15 13:34:58 -07:00
bower.json Update power-client dependency to 2.1.0 in bower.json 2016-09-02 14:11:51 -07:00
ember-cli-build.js Add ms-powerbi-report component and powerbi service with tests and dummy app. 2016-04-14 13:43:04 -07:00
index.js Add another powerbi-client shim to give access to whole library instead of instead of only instance of service 2016-07-20 13:20:42 -07:00
package.json Add homepage link to demo in package.json 2016-09-02 16:27:47 -07:00
testem.js Initial Commit from Ember CLI v2.4.3 2016-04-08 16:44:31 -07:00

README.md

ember-powerbi

Build Status npm version Total Downloads Monthly Downloads GitHub tag

A set of EmberJS components to seemlessly embed Power BI components into web based applications.

Contents

This addon provides components such as {{powerbi-report}} and {{powerbi-component}} as well as a service powerbi which wraps the core powerbi service from the powerbi-client package.

Getting started

  1. Run ember install ember-powerbi from ember application directory.

  2. Fetch data to embed a visual from the server (embedUrl and accessToken) and make it available on controller scope.

This would usually involve setting up Ember-Data with custom serializers and adapters or manually making requests using ajax through ember-network etc.

See the dummy application for more information.

If you need a sample server to test reports from your own Power BI workspace you can use the following:

  1. Insert the component in your template where you want to embed the visual:
{{powerbi-report embedUrl=embedConfiguration.embedUrl accessToken=embedConfiguration.accessToken reportId=embedConfiguration.id onEmbedded=(action 'onEmbedded') }}

Other Notes

Use the generic component to pass all properties as a single object. This may be useful when the type of the embeded component changes dynamically:

{{powerbi-component embedConfiguration onEmbedded=(action 'onEmbedded') class="powerbi-container"}}

Note that because this is generic you must have a type property on the object to indicate what you're embedding.

See the demo application for detailed usage which shows integration with controllers and how to setup the onEmbedded action. The embed action is necessary in order to get access to the embed instance within the parent controller which enables sending commands or registering event handlers.

Running the dummy app:

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

For more information on using ember-cli, visit http://ember-cli.com/.