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

WidgetComponentProvider

Home > @gooddata/sdk-ui-dashboard > IDashboardCustomComponentProps > WidgetComponentProvider

IDashboardCustomComponentProps.WidgetComponentProvider property

Specify function to obtain custom component to use for rendering a widget.

Signature:

WidgetComponentProvider?: OptionalWidgetComponentProvider;

Remarks

  • If not provided, the default implementation will be used. - If factory function is provided and it returns undefined, then the default implementation . This is useful if you want to customize just one particular widget and keep default rendering for the other widgets.

Example

// Simple component that alters the title of every widget
const CustomWidget = (props) => {
    const widget: IInsightWidget = {
        ...props.widget,
        title: `Prepend to ${props.widget.title}`,
    };

    return <DefaultDashboardWidget {...props} widget={widget} />;
};
  • IDashboardCustomComponentProps.WidgetComponentProvider property
  • Remarks
  • Example
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