This directory contains multiple examples for using the @sisense/sjs and @sisense/sjs-react packages.
- Clone or download the example you wish to run
- Find and replace any references to
https://example.com/with the full URL of your Sisense environment (including port, if not defailt) - Find and replace any references to
{dashboard_id}with a valid dashboardoidfrom your Sisense environment - Find and replace any references to
{widget_id_1}and{widget_id_2}with valid widgetoids from your Sisense environment - Install dependencies:
yarn install - Build the project:
yarn build - Make sure you are logged on to your Sisense environment in an active session in your browser (otherwise, you can set up SSO)
- Start the example:
yarn start
| Directory | Description |
|---|---|
| vanilla-js-demo | Basic example of using vanilla WebComponents in Javascript |
| react-demo | Basic example using React components in Javascript |
| react-ts-demo | Basic example using React components in Typescript |
| react-ts-demo-dynamic-widgets | React + Typescript example of dynamically loading widgets from a dashboard |
| react-ts-demo-mix-widgets-from-different-dashboards | React + Typescript example of rendering widgets from different dashboards |
| react-ts-demo-sso | React + Typescript example of combining the Component library with SSO |
| react-ts-demo-widget-manipulate-highcharts | React + Typescript example of accessing a widget's underlying Highcharts chart instance |
| react-ts-demo-widget-onloaded | React + Typescript example of accessing a widget's underlying object model |
| react-ts-demo-widget-process-results | React + Typescript example of modifying a widget's result data before rendering |