Example for how to embed the Embeddable Web Component in a React.js app created using Create React App.
This example contains two versions. One showing how to embed a single dashboard, and another showing how to control 3 embeddable in tabs from a single embeddable.
This example is active by default. It shows all dashboards available to you as buttons, and allows you to preview how to embed any of them.
- run
npm i - in
public/index.htmlmake sure you are loading the embed from the correct region - make sure the token server is running. It can be ran from the parent folder using
npm run token-server - run
npm start
This example demonstrates how to use one Embeddable to control any amount of other Embeddables, making use of variables.
- run
npm i - in
public/index.htmlmake sure you are loading the embed from the correct region - in
src/index.jsreplace<App>with<MultiTabApp> - in
src/MultiTabApp.jsreplace the IDs in theembeddablesconstant with the IDs of the dashboards you'd like to use - make sure the token server is running. It can be ran from the parent folder using
npm run token-server - run
npm start