0.9.1 • Published 4 years ago

react-powerbi v0.9.1

Weekly downloads
1,232
License
MIT
Repository
github
Last release
4 years ago

React PowerBI Component

This is to get you quickly embed your powerbi reports to your React Application.

Right now (before v1), it's very much a work in progress. Please submit your issues.

How to Use

import React, { Component } from 'react'
import PowerbiEmbedded from 'react-powerbi'

class App extends Component {
  render () {
    return (
      <div className='App'>
        <PowerbiEmbedded
          id={`${YOUR_REPORT_ID}`} // required
          embedUrl={`${YOUR_EMBED_URL}`} // required
          accessToken={`${YOUR_EMBED_TOKEN}`} // required
          filterPaneEnabled={false}
          navContentPaneEnabled={false}
          pageName={`${YOUR_PAGE_ID}`}
          embedType={`${EMBED_TYPE}`}
          tokenType={`${TOKEN_TYPE}`}
          permissions={`${PERMISSIONS}`}
          settings={{
            // any settings including localeSettings
          }}
          width='600px'
          height='900px'
        />
      </div>
    )
  }
}

export default App

Mobile Optimization

You only need to add mobile prop as boolean.

That set a configuration { layoutType: models.LayoutType.MobilePortrait }.

Check this reference

Embed Type

The embed type variable allows you to pass in the requested PowerBI "Type", be that a report, dashboard or tile. See reference. By default, report is selected.

TODO

  • Add .d.ts file for typescript (Thanks @Joonaspraks!)
0.9.1

4 years ago

0.9.0

4 years ago

0.8.1

4 years ago

0.8.0

4 years ago

0.7.0

4 years ago

0.7.0-alpha.0

4 years ago

0.6.0

4 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.1.7

6 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago