Socket
Socket
Sign inDemoInstall

react-powerbi

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-powerbi

Easily embed your PowerBI Dashboard to your React App


Version published
Weekly downloads
704
increased by3.99%
Maintainers
1
Weekly downloads
 
Created
Source

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!)

Keywords

FAQs

Package last updated on 29 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc