PowerBI-Ember

一组EmberJS组件,用于将Power BI组件无缝嵌入基于Web的应用程序中。(A set of EmberJS components to seamlessly embed Power BI components into web based applications.)

  • 所有者: microsoft/PowerBI-Ember
  • 平台: BSD, Linux, Mac, Windows
  • 许可证: Other
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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

  • ember server
  • Visit your app at http://localhost:4200.

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/.

主要指标

概览
名称与所有者microsoft/PowerBI-Ember
主编程语言JavaScript
编程语言JavaScript (语言数: 3)
平台BSD, Linux, Mac, Windows
许可证Other
所有者活动
创建于2016-04-05 20:35:31
推送于2020-01-07 01:03:46
最后一次提交2016-09-15 13:34:58
发布数3
最新版本名称v1.0.0-beta.3 (发布于 2016-08-04 11:05:07)
第一版名称v1.0.0-beta.1 (发布于 2016-04-26 17:16:20)
用户参与
星数20
关注者数33
派生数20
提交数48
已启用问题?
问题数2
打开的问题数2
拉请求数0
打开的拉请求数0
关闭的拉请求数3
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?