sisense.com
✅ You are viewing documentation for the latest version of Compose SDK.
Version:

Function WidgetById Fusion Embed

WidgetById(props): Promise< ReactNode > | ReactNode

The WidgetById component, which is a thin wrapper on the ChartWidget component, is used to render a widget created in a Sisense Fusion instance.

To learn more about using Sisense Fusion Widgets in Compose SDK, see Sisense Fusion Widgets.

Note: Widget extensions based on JS scripts and add-ons in Fusion are not supported.

Parameters

ParameterType
propsWidgetByIdProps

Returns

Promise< ReactNode > | ReactNode

Example

Display two dashboard widgets from a Fusion instance.

import { WidgetById } from '@sisense/sdk-ui';

const CodeExample = () => (
  <>
    <WidgetById
      dashboardOid="65a82171719e7f004018691c"
      widgetOid="65a82171719e7f0040186924"
      includeDashboardFilters={true}
      styleOptions={{ height: 380 }}
    />
    <WidgetById
      dashboardOid="65a82171719e7f004018691c"
      widgetOid="65a82171719e7f004018691f"
      styleOptions={{ height: 380 }}
    />
  </>
);

export default CodeExample;
Widget by id example 1
Last Updated: