GoodData.UI API reference
  • GoodData.UI
  • Docs & APIs
  • Developers
  • GoodData.CN
  • GoodData.UI
  • Docs & APIs
  • Get GoodData.CN Community Edition
  • 10.26.0
  • Code samples
  • Gallery
  • GitHub

addCustomWidget()

Home > @gooddata/sdk-ui-dashboard > IDashboardWidgetCustomizer > addCustomWidget

IDashboardWidgetCustomizer.addCustomWidget() method

Adds a new custom widget type.

Signature:

addCustomWidget(widgetType: string, Component: CustomDashboardWidgetComponent): IDashboardWidgetCustomizer;

Parameters

ParameterTypeDescription
widgetTypestringunique type name of the custom widget; if plugins register multiple custom widgets for the same widget type, then the last-registered custom widget wins
ComponentCustomDashboardWidgetComponentReact component to use for rendering of the custom widget

Returns:

IDashboardWidgetCustomizer

Remarks

Custom widget's can be used to render arbitrary content.

The custom widget must be wrapped inside an element which sets the height and width CSS sizing properties in order to align the behavior with the provided widget types.

  • IDashboardWidgetCustomizer.addCustomWidget() method
  • Parameters
  • Remarks
GoodData resources:
  • Documentation
Follow the community:
  • Community
Copyright © 2007–2025 GoodData Corporation. All Rights Reserved. Code licensed under a dual license - CC BY‑NC 4.0 for trial experience and GoodData.UI EULA for commercial use